No, the wildcard or fuzzy query is part of the term and the boost is a separate 
modifier:

  (hello*^0.5 OR hello~^0.5)

Or...

  (hello* OR hello~)^0.5


-- Jack Krupansky

From: sri krishna 
Sent: Friday, November 30, 2012 12:21 AM
To: dev@lucene.apache.org 
Subject: Re: composition of different queries based scores

for boosting the term for the same example is the above example is valid ?

(hello^0.5* OR hello^0.5~)




On Tue, Nov 27, 2012 at 11:22 PM, Jack Krupansky <j...@basetechnology.com> 
wrote:

  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