Is there a way to boost search results in the same field depending on type?
My basic enhancement is something like:
GET _search { "query": { "simple_query_string": { "query": "mangan", "fields":["_all", "title^6"] } } }
But for some other documents, I want the title to be less important, so I tried prefixing it with a type:
GET _search { "query": { "simple_query_string": { "query": "mangan", "fields":[ "_all", "DocumentationPage.title^6", "DocumentationPage.title^6"] } } }
But then it does not increase at all. As a last resort, I could use Funcsion / Script Score bu to avoid it.
As an example, suppose a document contains only the title field.
full-text-search elasticsearch relevance
PeterM Jan 23 '17 at 17:33 2017-01-23 17:33
source share