diff --git a/src/test/org/apache/lucene/search/TestPhraseQuery.java b/src/test/org/apache/lucene/search/TestPhraseQuery.java index cbcc8033c52..6e498a3d98b 100644 --- a/src/test/org/apache/lucene/search/TestPhraseQuery.java +++ b/src/test/org/apache/lucene/search/TestPhraseQuery.java @@ -183,12 +183,12 @@ public class TestPhraseQuery extends TestCase { IndexWriter writer = new IndexWriter(directory, new WhitespaceAnalyzer(), true); Document doc = new Document(); - doc.add(new Field("source", "marketing info", true, true, true)); + doc.add(new Field("source", "marketing info", Field.Store.YES, Field.Index.TOKENIZED)); writer.addDocument(doc); doc = new Document(); - doc.add(new Field("contents", "foobar", true, true, true)); - doc.add(new Field("source", "marketing info", true, true, true)); + doc.add(new Field("contents", "foobar", Field.Store.YES, Field.Index.TOKENIZED)); + doc.add(new Field("source", "marketing info", Field.Store.YES, Field.Index.TOKENIZED)); writer.addDocument(doc); writer.optimize(); @@ -213,15 +213,15 @@ public class TestPhraseQuery extends TestCase { writer = new IndexWriter(directory, new WhitespaceAnalyzer(), true); doc = new Document(); - doc.add(new Field("contents", "map entry woo", true, true, true)); + doc.add(new Field("contents", "map entry woo", Field.Store.YES, Field.Index.TOKENIZED)); writer.addDocument(doc); doc = new Document(); - doc.add(new Field("contents", "woo map entry", true, true, true)); + doc.add(new Field("contents", "woo map entry", Field.Store.YES, Field.Index.TOKENIZED)); writer.addDocument(doc); doc = new Document(); - doc.add(new Field("contents", "map foobarword entry woo", true, true, true)); + doc.add(new Field("contents", "map foobarword entry woo", Field.Store.YES, Field.Index.TOKENIZED)); writer.addDocument(doc); writer.optimize(); diff --git a/src/test/org/apache/lucene/search/TestSort.java b/src/test/org/apache/lucene/search/TestSort.java index 1c3ec1383ea..960c577eaa9 100644 --- a/src/test/org/apache/lucene/search/TestSort.java +++ b/src/test/org/apache/lucene/search/TestSort.java @@ -113,13 +113,13 @@ implements Serializable { IndexWriter writer = new IndexWriter (indexStore, new SimpleAnalyzer(), true); for (int i=0; i