I am using examine search and I got result sorted based on score of the the search 'Phrase'. Can anybody please help me to under the logic behind score. As I have exact phrase in one page but it is not top of the results.
So how are you constructing your examine search? - using Umbraco Helper, or creating your own Examine searcher?
Can you post your Examine SearchCriteria and the Lucene syntax it generates ?
(If you set a breakpoint on the criteria, you can get the Lucene syntax that your query generates)
If you search the same index from the backoffice Examine Search dashboard, do the results differ? and with the generated Lucene Syntax?
Examine search score
Hi
I am using examine search and I got result sorted based on score of the the search 'Phrase'. Can anybody please help me to under the logic behind score. As I have exact phrase in one page but it is not top of the results.
Thanks
Hi Manish
Examine is built on top of Lucene, there is a document here that outlines the maths behind the scoring calculations:
https://lucene.apache.org/core/360/api/core/org/apache/lucene/search/Similarity.html
but it can be quite complex.
In short it depends on how your content is indexed, and then how it is searched!
Do you mean a search for the word "phrase" or a particular phrase eg "Umbaco is supercool"? it's possible your search criteria is searching for instances of each word, and not their combination.. this post might be of interest: https://our.umbraco.org/forum/developers/extending-umbraco/13786-Examine-Multiple-search-terms-vs-Phrases
So how are you constructing your examine search? - using Umbraco Helper, or creating your own Examine searcher?
Can you post your Examine SearchCriteria and the Lucene syntax it generates ? (If you set a breakpoint on the criteria, you can get the Lucene syntax that your query generates)
If you search the same index from the backoffice Examine Search dashboard, do the results differ? and with the generated Lucene Syntax?
regards
Marc
is working on a reply...