public abstract class PayloadFunction extends Object
for more information| Constructor and Description | 
|---|
| PayloadFunction() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract float | currentScore(int docId,
            String field,
            int start,
            int end,
            int numPayloadsSeen,
            float currentScore,
            float currentPayloadScore)Calculate the score up to this point for this doc and field | 
| abstract float | docScore(int docId,
        String field,
        int numPayloadsSeen,
        float payloadScore)Calculate the final score for all the payloads seen so far for this doc/field | 
| abstract boolean | equals(Object o) | 
| Explanation | explain(int docId,
       String field,
       int numPayloadsSeen,
       float payloadScore) | 
| abstract int | hashCode() | 
public abstract float currentScore(int docId,
                 String field,
                 int start,
                 int end,
                 int numPayloadsSeen,
                 float currentScore,
                 float currentPayloadScore)
docId - The current docfield - The fieldstart - The start position of the matching Spanend - The end position of the matching SpannumPayloadsSeen - The number of payloads seen so farcurrentScore - The current score so farcurrentPayloadScore - The score for the current payloadSpanspublic abstract float docScore(int docId,
             String field,
             int numPayloadsSeen,
             float payloadScore)
docId - The current docfield - The current fieldnumPayloadsSeen - The total number of payloads seen on this documentpayloadScore - The raw score for those payloadspublic Explanation explain(int docId, String field, int numPayloadsSeen, float payloadScore)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.