You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/06/27 20:58:07 UTC

[Lucene-java Wiki] Update of "Payloads" by DanielNaber

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:
http://wiki.apache.org/lucene-java/Payloads

------------------------------------------------------------------------------
  
  }}} 
  
+ 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.