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:
Robert Muir 2010-12-28 04:47:23 +00:00
parent 061eba1e4f
commit 1b671cfba3
1 changed files with 1 additions and 1 deletions

View File

@ -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);