mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 02:58:58 +00:00
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:
parent
cd4135489d
commit
d76776eb1b
@ -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
|
||||||
----------------------
|
----------------------
|
||||||
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user