Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Manish 373 posts 932 karma points
    Jun 23, 2017 @ 08:31
    Manish
    0

    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

  • Marc Goodson 2128 posts 14220 karma points MVP 8x c-trib
    Jun 25, 2017 @ 10:00
    Marc Goodson
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft