Searched refs:newField (Results 1 - 25 of 327) sorted by relevance

1234567891011>>

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestOmitPositions.java38 Field f = newField("foo", "this is a test test", Field.Index.ANALYZED);
73 Field f1 = newField("f1", "This field has docs only", Field.Store.NO, Field.Index.ANALYZED);
77 Field f2 = newField("f2", "This field has docs only", Field.Store.NO, Field.Index.ANALYZED);
81 Field f3 = newField("f3", "This field has docs only", Field.Store.NO, Field.Index.ANALYZED);
86 Field f4 = newField("f4", "This field has docs and freqs", Field.Store.NO, Field.Index.ANALYZED);
90 Field f5 = newField("f5", "This field has docs and freqs", Field.Store.NO, Field.Index.ANALYZED);
94 Field f6 = newField("f6", "This field has docs and freqs", Field.Store.NO, Field.Index.ANALYZED);
99 Field f7 = newField("f7", "This field has docs and freqs and positions", Field.Store.NO, Field.Index.ANALYZED);
103 Field f8 = newField("f8", "This field has docs and freqs and positions", Field.Store.NO, Field.Index.ANALYZED);
107 Field f9 = newField("f
[all...]
H A DTestParallelReader.java127 d3.add(newField("f3", "v1", Field.Store.YES, Field.Index.ANALYZED));
213 d1.add(newField("f1", "v1", Field.Store.YES, Field.Index.ANALYZED));
214 d1.add(newField("f2", "v1", Field.Store.YES, Field.Index.ANALYZED));
215 d1.add(newField("f3", "v1", Field.Store.YES, Field.Index.ANALYZED));
216 d1.add(newField("f4", "v1", Field.Store.YES, Field.Index.ANALYZED));
219 d2.add(newField("f1", "v2", Field.Store.YES, Field.Index.ANALYZED));
220 d2.add(newField("f2", "v2", Field.Store.YES, Field.Index.ANALYZED));
221 d2.add(newField("f3", "v2", Field.Store.YES, Field.Index.ANALYZED));
222 d2.add(newField("f4", "v2", Field.Store.YES, Field.Index.ANALYZED));
243 d1.add(newField("f
[all...]
H A DTestTermVectorsWriter.java46 Field f = newField("field", "abcd", Field.Store.NO, Field.Index.NOT_ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
49 Field f2 = newField("field", "", Field.Store.NO, Field.Index.NOT_ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
81 Field f = newField("field", "abcd", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
103 Field f = newField("field", "abcd ", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
178 Field f = newField("field", "abcd the", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
201 Field f = newField("field", "abcd the ", Field.Store.NO,
203 Field f2 = newField("field", "crunch man", Field.Store.NO,
232 Field f = newField("field", "", Field.Store.NO,
234 Field f2 = newField("field", "crunch man", Field.Store.NO,
261 Field f = newField("fiel
[all...]
H A DTestRollback.java38 doc.add(newField("pk", Integer.toString(i), Store.YES, Index.ANALYZED_NO_NORMS));
50 doc.add(newField("pk", value, Store.YES, Index.ANALYZED_NO_NORMS));
51 doc.add(newField("text", "foo", Store.YES, Index.ANALYZED_NO_NORMS));
H A DTestIndexWriterDelete.java60 doc.add(newField("id", keywords[i], Field.Store.YES,
62 doc.add(newField("country", unindexed[i], Field.Store.YES,
64 doc.add(newField("contents", unstored[i], Field.Store.NO,
67 .add(newField("city", text[i], Field.Store.YES,
386 doc.add(newField("content", "aaa", Field.Store.NO, Field.Index.ANALYZED));
387 doc.add(newField("id", String.valueOf(id), Field.Store.YES,
389 doc.add(newField("value", String.valueOf(value), Field.Store.NO,
398 doc.add(newField("content", "aaa", Field.Store.NO, Field.Index.ANALYZED));
399 doc.add(newField("id", String.valueOf(id), Field.Store.YES,
401 doc.add(newField("valu
[all...]
H A DTestThreadedForceMerge.java66 d.add(newField("id", Integer.toString(i), Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
67 d.add(newField("contents", English.intToEnglish(i), Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
86 d.add(newField("id", iterFinal + "_" + iFinal + "_" + j + "_" + k, Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
87 d.add(newField("contents", English.intToEnglish(iFinal+k), Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
H A DTestDocumentWriter.java127 doc.add(newField("repeated", "repeated one", Field.Store.YES, Field.Index.ANALYZED));
128 doc.add(newField("repeated", "repeated two", Field.Store.YES, Field.Index.ANALYZED));
198 doc.add(newField("f1", "a 5 a a", Field.Store.YES, Field.Index.ANALYZED));
275 doc.add(newField("f1", "v1", Store.YES, Index.NOT_ANALYZED, TermVector.NO));
276 doc.add(newField("f1", "v2", Store.YES, Index.NOT_ANALYZED, TermVector.WITH_POSITIONS_OFFSETS));
278 doc.add(newField("f2", "v1", Store.YES, Index.NOT_ANALYZED, TermVector.WITH_POSITIONS_OFFSETS));
279 doc.add(newField("f2", "v2", Store.YES, Index.NOT_ANALYZED, TermVector.NO));
308 doc.add(newField("f1", "v1", Store.NO, Index.ANALYZED_NO_NORMS));
309 doc.add(newField("f1", "v2", Store.YES, Index.NO));
311 Field f = newField("f
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestOmitPositions.java38 Field f = newField("foo", "this is a test test", Field.Index.ANALYZED);
73 Field f1 = newField("f1", "This field has docs only", Field.Store.NO, Field.Index.ANALYZED);
77 Field f2 = newField("f2", "This field has docs only", Field.Store.NO, Field.Index.ANALYZED);
81 Field f3 = newField("f3", "This field has docs only", Field.Store.NO, Field.Index.ANALYZED);
86 Field f4 = newField("f4", "This field has docs and freqs", Field.Store.NO, Field.Index.ANALYZED);
90 Field f5 = newField("f5", "This field has docs and freqs", Field.Store.NO, Field.Index.ANALYZED);
94 Field f6 = newField("f6", "This field has docs and freqs", Field.Store.NO, Field.Index.ANALYZED);
99 Field f7 = newField("f7", "This field has docs and freqs and positions", Field.Store.NO, Field.Index.ANALYZED);
103 Field f8 = newField("f8", "This field has docs and freqs and positions", Field.Store.NO, Field.Index.ANALYZED);
107 Field f9 = newField("f
[all...]
H A DTestParallelReader.java110 d3.add(newField("f3", "v1", Field.Store.YES, Field.Index.ANALYZED));
196 d1.add(newField("f1", "v1", Field.Store.YES, Field.Index.ANALYZED));
197 d1.add(newField("f2", "v1", Field.Store.YES, Field.Index.ANALYZED));
198 d1.add(newField("f3", "v1", Field.Store.YES, Field.Index.ANALYZED));
199 d1.add(newField("f4", "v1", Field.Store.YES, Field.Index.ANALYZED));
202 d2.add(newField("f1", "v2", Field.Store.YES, Field.Index.ANALYZED));
203 d2.add(newField("f2", "v2", Field.Store.YES, Field.Index.ANALYZED));
204 d2.add(newField("f3", "v2", Field.Store.YES, Field.Index.ANALYZED));
205 d2.add(newField("f4", "v2", Field.Store.YES, Field.Index.ANALYZED));
226 d1.add(newField("f
[all...]
H A DTestTermVectorsWriter.java45 Field f = newField("field", "abcd", Field.Store.NO, Field.Index.NOT_ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
48 Field f2 = newField("field", "", Field.Store.NO, Field.Index.NOT_ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
80 Field f = newField("field", "abcd", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
102 Field f = newField("field", "abcd ", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
177 Field f = newField("field", "abcd the", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS);
200 Field f = newField("field", "abcd the ", Field.Store.NO,
202 Field f2 = newField("field", "crunch man", Field.Store.NO,
231 Field f = newField("field", "", Field.Store.NO,
233 Field f2 = newField("field", "crunch man", Field.Store.NO,
260 Field f = newField("fiel
[all...]
H A DTestRollback.java38 doc.add(newField("pk", Integer.toString(i), Store.YES, Index.ANALYZED_NO_NORMS));
50 doc.add(newField("pk", value, Store.YES, Index.ANALYZED_NO_NORMS));
51 doc.add(newField("text", "foo", Store.YES, Index.ANALYZED_NO_NORMS));
H A DTestIndexWriterExceptions.java66 doc.add(newField(r, "content1", "aaa bbb ccc ddd", Field.Store.YES, Field.Index.ANALYZED));
67 doc.add(newField(r, "content6", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
68 doc.add(newField(r, "content2", "aaa bbb ccc ddd", Field.Store.YES, Field.Index.NOT_ANALYZED));
69 doc.add(newField(r, "content3", "aaa bbb ccc ddd", Field.Store.YES, Field.Index.NO));
71 doc.add(newField(r, "content4", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.ANALYZED));
72 doc.add(newField(r, "content5", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.NOT_ANALYZED));
74 doc.add(newField(r, "content7", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.NOT_ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
76 final Field idField = newField(r, "id", "", Field.Store.YES, Field.Index.NOT_ANALYZED);
306 doc.add(newField("field", "a field", Field.Store.YES,
326 doc.add(newField("fiel
[all...]
H A DTestFilterIndexReader.java102 d1.add(newField("default","one two", Field.Store.YES, Field.Index.ANALYZED));
106 d2.add(newField("default","one three", Field.Store.YES, Field.Index.ANALYZED));
110 d3.add(newField("default","two four", Field.Store.YES, Field.Index.ANALYZED));
H A DTestIndexWriterDelete.java60 doc.add(newField("id", keywords[i], Field.Store.YES,
62 doc.add(newField("country", unindexed[i], Field.Store.YES,
64 doc.add(newField("contents", unstored[i], Field.Store.NO,
67 .add(newField("city", text[i], Field.Store.YES,
386 doc.add(newField("content", "aaa", Field.Store.NO, Field.Index.ANALYZED));
387 doc.add(newField("id", String.valueOf(id), Field.Store.YES,
389 doc.add(newField("value", String.valueOf(value), Field.Store.NO,
398 doc.add(newField("content", "aaa", Field.Store.NO, Field.Index.ANALYZED));
399 doc.add(newField("id", String.valueOf(id), Field.Store.YES,
401 doc.add(newField("valu
[all...]
H A DTestThreadedForceMerge.java66 d.add(newField("id", Integer.toString(i), Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
67 d.add(newField("contents", English.intToEnglish(i), Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
86 d.add(newField("id", iterFinal + "_" + iFinal + "_" + j + "_" + k, Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
87 d.add(newField("contents", English.intToEnglish(iFinal+k), Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));
H A DTestDocumentWriter.java126 doc.add(newField("repeated", "repeated one", Field.Store.YES, Field.Index.ANALYZED));
127 doc.add(newField("repeated", "repeated two", Field.Store.YES, Field.Index.ANALYZED));
197 doc.add(newField("f1", "a 5 a a", Field.Store.YES, Field.Index.ANALYZED));
274 doc.add(newField("f1", "v1", Store.YES, Index.NOT_ANALYZED, TermVector.NO));
275 doc.add(newField("f1", "v2", Store.YES, Index.NOT_ANALYZED, TermVector.WITH_POSITIONS_OFFSETS));
277 doc.add(newField("f2", "v1", Store.YES, Index.NOT_ANALYZED, TermVector.WITH_POSITIONS_OFFSETS));
278 doc.add(newField("f2", "v2", Store.YES, Index.NOT_ANALYZED, TermVector.NO));
307 doc.add(newField("f1", "v1", Store.NO, Index.ANALYZED_NO_NORMS));
308 doc.add(newField("f1", "v2", Store.YES, Index.NO));
310 Field f = newField("f
[all...]
/lucene-3.6.0/lucene/contrib/misc/src/test/org/apache/lucene/index/
H A DTestTermVectorAccessor.java33 doc.add(newField("a", "a b a c a d a e a f a g a h a", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
34 doc.add(newField("b", "a b c b d b e b f b g b h b", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
35 doc.add(newField("c", "a c b c d c e c f c g c h c", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
39 doc.add(newField("a", "a b a c a d a e a f a g a h a", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS));
40 doc.add(newField("b", "a b c b d b e b f b g b h b", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS));
41 doc.add(newField("c", "a c b c d c e c f c g c h c", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS));
45 doc.add(newField("a", "a b a c a d a e a f a g a h a", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.YES));
46 doc.add(newField("b", "a b c b d b e b f b g b h b", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.YES));
47 doc.add(newField("c", "a c b c d c e c f c g c h c", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.YES));
51 doc.add(newField("
[all...]
H A DTestPKIndexSplitter.java105 doc.add(newField("id", id, Store.YES, Index.NOT_ANALYZED));
106 doc.add(newField("indexname", indexName, Store.YES, Index.NOT_ANALYZED));
109 doc.add(newField("field1", sb.toString(), Store.YES, Index.ANALYZED));
113 doc.add(newField("field" + (i + 1), sb.toString(), Store.YES, Index.ANALYZED));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestPhrasePrefixQuery.java49 doc1.add(newField("body", "blueberry pie", Field.Store.YES,
51 doc2.add(newField("body", "blueberry strudel", Field.Store.YES,
53 doc3.add(newField("body", "blueberry pizza", Field.Store.YES,
55 doc4.add(newField("body", "blueberry chewing gum", Field.Store.YES,
57 doc5.add(newField("body", "piccadilly circus", Field.Store.YES,
H A DTestFilteredQuery.java56 doc.add (newField("field", "one two three four five", Field.Store.YES, Field.Index.ANALYZED));
57 doc.add (newField("sorter", "b", Field.Store.YES, Field.Index.ANALYZED));
61 doc.add (newField("field", "one two three four", Field.Store.YES, Field.Index.ANALYZED));
62 doc.add (newField("sorter", "d", Field.Store.YES, Field.Index.ANALYZED));
66 doc.add (newField("field", "one two three y", Field.Store.YES, Field.Index.ANALYZED));
67 doc.add (newField("sorter", "a", Field.Store.YES, Field.Index.ANALYZED));
71 doc.add (newField("field", "one two x", Field.Store.YES, Field.Index.ANALYZED));
72 doc.add (newField("sorter", "c", Field.Store.YES, Field.Index.ANALYZED));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestPhrasePrefixQuery.java49 doc1.add(newField("body", "blueberry pie", Field.Store.YES,
51 doc2.add(newField("body", "blueberry strudel", Field.Store.YES,
53 doc3.add(newField("body", "blueberry pizza", Field.Store.YES,
55 doc4.add(newField("body", "blueberry chewing gum", Field.Store.YES,
57 doc5.add(newField("body", "piccadilly circus", Field.Store.YES,
/lucene-3.6.0/lucene/contrib/remote/src/test/org/apache/lucene/search/
H A DTestRemoteCachingWrapperFilter.java45 doc.add(newField("test", "test text", Field.Store.YES, Field.Index.ANALYZED));
46 doc.add(newField("type", "A", Field.Store.YES, Field.Index.ANALYZED));
47 doc.add(newField("other", "other test text", Field.Store.YES, Field.Index.ANALYZED));
51 doc.add(newField("test", "test text", Field.Store.YES, Field.Index.ANALYZED));
52 doc.add(newField("type", "B", Field.Store.YES, Field.Index.ANALYZED));
53 doc.add(newField("other", "other test text", Field.Store.YES, Field.Index.ANALYZED));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/function/
H A DFunctionTestSetup.java123 f = newField(ID_FIELD, id2String(scoreAndID), Field.Store.YES, Field.Index.NOT_ANALYZED); // for debug purposes
127 f = newField(TEXT_FIELD, "text of doc" + scoreAndID + textLine(i), Field.Store.NO, Field.Index.ANALYZED); // for regular search
131 f = newField(INT_FIELD, "" + scoreAndID, Field.Store.NO, Field.Index.NOT_ANALYZED); // for function scoring
135 f = newField(FLOAT_FIELD, scoreAndID + ".000", Field.Store.NO, Field.Index.NOT_ANALYZED); // for function scoring
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/function/
H A DFunctionTestSetup.java123 f = newField(ID_FIELD, id2String(scoreAndID), Field.Store.YES, Field.Index.NOT_ANALYZED); // for debug purposes
127 f = newField(TEXT_FIELD, "text of doc" + scoreAndID + textLine(i), Field.Store.NO, Field.Index.ANALYZED); // for regular search
131 f = newField(INT_FIELD, "" + scoreAndID, Field.Store.NO, Field.Index.NOT_ANALYZED); // for function scoring
135 f = newField(FLOAT_FIELD, scoreAndID + ".000", Field.Store.NO, Field.Index.NOT_ANALYZED); // for function scoring
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/spans/
H A DTestSpanFirstQuery.java40 doc.add(newField("field", "the quick brown fox", Field.Index.ANALYZED));
43 doc2.add(newField("field", "quick brown fox", Field.Index.ANALYZED));

Completed in 31 milliseconds

1234567891011>>