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:
Michael McCandless 2015-01-24 16:41:04 +00:00
parent 89249208a3
commit be53396404
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ public class TestDuelingCodecs extends LuceneTestCase {
// grab the title and add some SortedSet instances for fun // grab the title and add some SortedSet instances for fun
String title = document.get("titleTokenized"); String title = document.get("titleTokenized");
String split[] = title.split("\\s+"); String split[] = title.split("\\s+");
document.removeFields("sortedset");
for (String trash : split) { for (String trash : split) {
document.add(new SortedSetDocValuesField("sortedset", new BytesRef(trash))); document.add(new SortedSetDocValuesField("sortedset", new BytesRef(trash)));
} }