Skip to content

datahub search bar returns 400 bad request #371

@ndne

Description

@ndne

I use the branch 25.

When typing a word and pressing "enter", the response is 400 bad request.

When looking closely at the response I found the following message:
No mapping found for [revisionDateForResource] in order to sort)

Inside the elasticsearch container, those following command fixed the issue:

curl -u elastic -X PUT \
"http://localhost:9200/gn-records/_mapping" \
-H "Content-Type: application/json" \
-d '{
"properties": {
"revisionDateForResource": {
    "type": "date"
}
}
}'

curl -u elastic -X PUT \
"http://localhost:9200/gn-records/_mapping" \
-H "Content-Type: application/json" \
-d '{
"properties": {
"creationDateForResource": {
    "type": "date"
}
}
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions