Skip to content

Commit

Permalink
fixed index out of bound exception when index certain features type.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwionly2 committed May 24, 2016
1 parent d45d245 commit b3febad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public float score() throws IOException {
try {
BytesRef bytesRef = binaryDocValues.get(docID());
LireFeature docFeature = lireFeature.getClass().newInstance();
docFeature.setByteArrayRepresentation(bytesRef.bytes);
docFeature.setByteArrayRepresentation(bytesRef.bytes, bytesRef.offset, bytesRef.length);

double distance = lireFeature.getDistance(docFeature);
double score;
Expand Down

0 comments on commit b3febad

Please sign in to comment.