Is it possible to affect the elasticsearch explanation? -
let's have group of documents , want search them colour. this.
[ {"colour": "red"}, {"colour": "yellow"}, {"colour": "green"}, {"colour": "orange"} ] some colours similar others want them appear in search lower boost query this:
"explain": "true" "query": { "dis_max": { "queries": [ { "term": { "colour": "red" } }, { "terms": { "colour": ["orange", "pink"], "boost": 0.8 } }, { "term": { "colour": "yellow", "boost": 0.5 } } ] } } in reality have several dis_max queries. in explanation if document had score of 0.8 because of pink know if matched because searched red opposed pink or yellow example. there anyway add information explanation?
Comments
Post a Comment