How to increase score matching phrase to the text from where phrase was selected?


(Nick Lipnyagov) #1

Hi,

I have many texts in my db, and I am using next query:
"query": {
"match_phrase": {
"text.exact": {
"query": "some search phrase"
}
}

When I select the phrase, firstly elastic returns me other text (I also have matching in this text).

Could you give me some advices, how to increase rating of original text, in order it would be first in my result list?


(Jaspreet Singh) #2

Not sure if the ask is super clear.
Are you asking for documents that are exact matches to be shown first than, documents that have parts of their content matching?
Can you share examples?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.