lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-java Wiki] Update of "Payloads" by GrantIngersoll
Date Sun, 06 Apr 2008 07:55:11 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 GrantIngersoll:
http://wiki.apache.org/lucene-java/Payloads

The comment on the change is:
clarifications on payload scoring

------------------------------------------------------------------------------
  
  == Scoring Payloads ==
  
- Similarity.scorePayload(), if defined, should be the commonly-used method.  This is what
Mike Klaas does: {{{
+ Scoring payloads involves overriding the Similarity.scorePayload() method.  For example,
if one has implemented storing a Float payload, it could be used for scoring in the following
way: {{{
  
    public float scorePayload(byte [] payload, int offset, int length) {
      assert length == 4;
@@ -28, +28 @@

  
  }}} 
  
- /* TODO */
+ 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.
  

Mime
View raw message