Skip to content

Commit

Permalink
bugfix for searching with JCD fearture?
Browse files Browse the repository at this point in the history
  • Loading branch information
hirobo committed Mar 7, 2016
1 parent f9864a7 commit be80790
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,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);

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

0 comments on commit be80790

Please sign in to comment.