Skip to content

Instantly share code, notes, and snippets.

@evanwong
Created September 20, 2013 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanwong/6638420 to your computer and use it in GitHub Desktop.
Save evanwong/6638420 to your computer and use it in GitHub Desktop.
elasticsearch _score not matching explanation.value
curl -XGET localhost:9200/test/title/1/_explain -d '{
"query": {
"multi_match": {
"query": "matching",
"fields": [
"_all"
]
}
}
}'
curl -XPOST localhost:9200/test -d '{
"mappings": {
"title": {
"properties": {
"name": {
"type": "string",
"boost": 100
}
}
}
}
}'
curl -XPOST localhost:9200/test/title/1 -d '{
"name": "Score not matching title"
}'
@evanwong
Copy link
Author

The _explain call is returning "matched: false" which is not correct.
And the _search is actually returning result with the _score not matching the _explanation.value which is 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment