How to predict the top match or higher score is exact match?


(Sam-4) #1

Hi

How can I predict the top one match is most exact match in elastic search.

Thanks

--


(Derry O' Sullivan) #2

Hi Sam,

Can you be a bit more specific about your question? ES returns the results
in sorted score order by default (print out the scores to verify). Matching
is based on your query so you decide what the most exact match is in your
query.

On Wednesday, 26 September 2012 08:10:05 UTC+1, sam wrote:

Hi

How can I predict the top one match is most exact match in elastic search.

Thanks

--


(Sam-4) #3

yes,score is sorted order,but some times i got score on less than 1 and
some times greater than one.for example- if i am searching on all
fields(_all) i got less score when i search on specific field i got greater
score.what i think that fields is also play important role to get score.

I am working on project where is want to set 2- parameters( system matched
exact match,go for manual match
) .
for deciding two parameters i need to set cutoff which will be based on
score, so score play vital role.if score is not consistent then i did not
decide any cutoff.if you suggest any other option to solve my problem than
I am very pleasure for this.

The logic :

suppose my cuff off is set 3,then between 30% of cutoff will mark as go for
manual match and above or equal the cutoff will say that exact match.

Thanks

On Wednesday, September 26, 2012 12:40:05 PM UTC+5:30, sam wrote:

Hi

How can I predict the top one match is most exact match in elastic search.

Thanks

--


(Ivan Brusic) #4

Lucene discourages thinking in terms of exact match:

http://wiki.apache.org/lucene-java/ScoresAsPercentages

*People frequently want to compute a "Percentage" from Lucene scores to
determine what is a "100% perfect" match vs a "50%" match. This is also
somethings called a "normalized score"

Don't do this.

Seriously. Stop trying to think about your problem this way, it's not going
to end well.*

See also
http://wiki.apache.org/lucene-java/LuceneFAQ#Can_I_filter_by_score.3F

--
Ivan

On Wed, Sep 26, 2012 at 12:59 AM, sam mishra.sameek@gmail.com wrote:

yes,score is sorted order,but some times i got score on less than 1 and
some
times greater than one.for example- if i am searching on all fields(_all)
i
got less score when i search on specific field i got greater score.what i
think that fields is also play important role to get score.

I am working on project where is want to set 2- parameters( system matched
exact match,go for manual match) .
for deciding two parameters i need to set cutoff which will be based on
score, so score play vital role.if score is not consistent then i did not
decide any cutoff.if you suggest any other option to solve my problem
than I
am very pleasure for this.

The logic :

suppose my cuff off is set 3,then between 30% of cutoff will mark as go
for
manual match and above or equal the cutoff will say that exact match.

Thanks

On Wednesday, September 26, 2012 12:40:05 PM UTC+5:30, sam wrote:

Hi

How can I predict the top one match is most exact match in elastic
search.

Thanks

--

--


(system) #5