mirror of https://github.com/apache/lucene.git
LUCENE-1182: Added delegation to scorePayload
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@629772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37a060c15c
commit
d5271e5619
|
@ -77,6 +77,8 @@ Bug fixes
|
|||
5. LUCENE-1179: Fixed assert statement that was incorrectly
|
||||
preventing Fields with empty-string field name from working.
|
||||
(Sergey Kabashnyuk via Mike McCandless)
|
||||
|
||||
6. LUCENE-1182: Added scorePayload to SimilarityDelegator (Andi Vajda via Grant Ingersoll)
|
||||
|
||||
New features
|
||||
|
||||
|
|
|
@ -56,4 +56,7 @@ public class SimilarityDelegator extends Similarity {
|
|||
return delegee.coord(overlap, maxOverlap);
|
||||
}
|
||||
|
||||
public float scorePayload(String fieldName, byte[] payload, int offset, int length) {
|
||||
return delegee.scorePayload(fieldName, payload, offset, length);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue