mirror of https://github.com/apache/lucene.git
fix nasty bug (doesnt affect any codecs today): respect bytesref offset
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1053253 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
061eba1e4f
commit
1b671cfba3
|
@ -321,7 +321,7 @@ public final class FuzzyTermsEnum extends TermsEnum {
|
|||
|
||||
// TODO: benchmark doing this backwards
|
||||
for (int i = 1; i < matchers.length; i++)
|
||||
if (matchers[i].run(term.bytes, 0, term.length)) {
|
||||
if (matchers[i].run(term.bytes, term.offset, term.length)) {
|
||||
// this sucks, we convert just to score based on length.
|
||||
if (codePointCount == -1) {
|
||||
codePointCount = UnicodeUtil.codePointCount(term);
|
||||
|
|
Loading…
Reference in New Issue