lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Lucene-java Wiki] Update of "Payloads" by DanielNaber
Date Fri, 27 Jun 2008 18:58:07 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.

The following page has been changed by DanielNaber:

+ Don't forget to activate your Similarity implementation using IndexSearcher.setSimilarity().
Also, note that even then not all queries will actually make use of your method. For example,
you will need to use BoostingTermQuery instead of TermQuery. QueryParser currently (Lucene
2.3.2) always uses TermQuery and you will need to extend QueryParser and overwrite getFieldQuery().
  Note, that is just one possible way of scoring a payload.  Payloads are application specific.
 For example payload Token Filters see the payload package in the contrib/Analysis module.

View raw message