mirror of https://github.com/apache/lucene.git
fix test bug due to sneaky Document reuse by LineFileDocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1654554 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
89249208a3
commit
be53396404
|
@ -135,6 +135,7 @@ public class TestDuelingCodecs extends LuceneTestCase {
|
|||
// grab the title and add some SortedSet instances for fun
|
||||
String title = document.get("titleTokenized");
|
||||
String split[] = title.split("\\s+");
|
||||
document.removeFields("sortedset");
|
||||
for (String trash : split) {
|
||||
document.add(new SortedSetDocValuesField("sortedset", new BytesRef(trash)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue