I just want to know the scoring mechanism(similarity) used in the given index.For example, if I have a index called test_es, then I want to know which scoring mechanism is used in test_es index. Also, I wanted to know by default in elasticsearch 8.3 which scoring mechanism is used.
My usecase is I have a field called subjects which is a list. This field will be having multiple values. For example one doc has ['subject one', 'subject two', 'subject three'], another doc has ['one test', 'one example', 'two'] in field name. So when I search for subject one in field name, I should get the first document first since it is most relevant, but I was getting the second doc first, even though I am sorting the result by _score Thank you
CodePudding user response:
Its a very general question, if you don't have any extra mechanism Elasticsearch results are by default scored according to BM25 as explained in the similarity module of Elasticsearch
You can also take a look at other available similarity systems in Elasticsearch