lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: handling different scores related to queries
Date Tue, 27 Nov 2012 18:15:54 GMT
Call the IndexSearch#explain method to get the technical details on how any 
query is scored. Call Explanation#toString to get the English description 
for the scoring.

Or, using Solr, add the &debugQuery=true parameter to your query request and 
look at the "explain" section for scoring calculations.

Some of these complex queries are "constant score" for performance reasons.

-- Jack Krupansky

-----Original Message----- 
From: sri krishna
Sent: Tuesday, November 27, 2012 12:38 PM
To: java-user
Subject: handling different scores related to queries

for a search string hello*~ how the scoring is calculated?

as the formula given in the url:,
doesn't take into consideration of edit distance(levenshtein distance) and
prefix term corresponding factors into account.

Does lucene add up the scores obtained from each type of query included i.e
for the above query actual score=default scoring+1/(edit distance)+prefix
match score ?, If so, there is no normalization between scores, else what
is the approach lucene follows starting from seperating each query based
identifiers like (~(edit distance), *(prefix query) etc) to actual scoring. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message