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

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?

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?

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