mirror of https://github.com/apache/lucene.git
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:
parent
13d3259092
commit
d7d599221d
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue