The fuzzy option will be ignored here – you cannot combine fuzzy and wild on 
the same term, although you could do an OR of the two:

(hello* OR hello~)

-- Jack Krupansky

From: sri krishna 
Sent: Tuesday, November 27, 2012 11:08 AM
To: dev@lucene.apache.org 
Subject: composition of different queries based scores

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

as the formula given in the url:  
http://lucene.apache.org/core/old_versioned_docs/versions/3_0_1/api/core/org/apache/lucene/search/Similarity.html,
 doesnot take into consideration of edit 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. 




Reply via email to