SOLR-532: WordDelimFilter respects payloads and other Token attributes

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@706667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2008-10-21 15:50:03 +00:00
parent cd4135489d
commit d76776eb1b
2 changed files with 3 additions and 5 deletions

View File

@ -84,6 +84,8 @@ Bug Fixes
2. SOLR-771: CoreAdminHandler STATUS should display 'normalized' paths (koji, hossman, shalin) 2. SOLR-771: CoreAdminHandler STATUS should display 'normalized' paths (koji, hossman, shalin)
3. SOLR-532: WordDelimiterFilter now respects payloads and other attributes of the original Token by using Token.clone() (Tricia Williams, gsingers)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -236,11 +236,7 @@ final class WordDelimiterFilter extends TokenFilter {
startOff += start; startOff += start;
} }
Token newTok = new Token(startOff, return (Token)orig.clone(orig.termBuffer(), start, (end - start), startOff, endOff);
endOff,
orig.type());
newTok.setTermBuffer(orig.termBuffer(), start, (end - start));
return newTok;
} }