SOLR-1667 -- PatternTokenizer does not reset attributes such as positionIncrementGap

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@892217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-12-18 10:43:40 +00:00
parent 13d3259092
commit d7d599221d
2 changed files with 4 additions and 1 deletions

View File

@ -145,6 +145,9 @@ Bug Fixes
* SOLR-1660: CapitalizationFilter crashes if you use the maxWordCountOption
(Robert Muir via shalin)
* SOLR-1667: PatternTokenizer does not reset attributes such as positionIncrementGap
(Robert Muir via shalin)
Other Changes
----------------------

View File

@ -79,7 +79,7 @@ public final class PatternTokenizer extends Tokenizer {
@Override
public boolean incrementToken() throws IOException {
if (index >= str.length()) return false;
clearAttributes();
if (group >= 0) {
// match a specific group