Searched refs:MockAnalyzer (Results 1 - 25 of 335) sorted by relevance

1234567891011>>

/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/
H A DTestMockAnalyzer.java26 Analyzer a = new MockAnalyzer(random);
37 Analyzer a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true);
48 Analyzer a = new MockAnalyzer(random, MockTokenizer.KEYWORD, false);
59 Analyzer a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true, (CharArraySet) StopAnalyzer.ENGLISH_STOP_WORDS_SET, true);
65 a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true, (CharArraySet) StopAnalyzer.ENGLISH_STOP_WORDS_SET, false);
74 Analyzer analyzer = new MockAnalyzer(random);
88 checkRandomData(random, new MockAnalyzer(random), atLeast(1000));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/
H A DTestMockAnalyzer.java28 Analyzer a = new MockAnalyzer(random);
39 Analyzer a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true);
50 Analyzer a = new MockAnalyzer(random, MockTokenizer.KEYWORD, false);
61 Analyzer a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true, (CharArraySet) StopAnalyzer.ENGLISH_STOP_WORDS_SET, true);
67 a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true, (CharArraySet) StopAnalyzer.ENGLISH_STOP_WORDS_SET, false);
76 Analyzer analyzer = new MockAnalyzer(random);
90 checkRandomData(random, new MockAnalyzer(random), atLeast(1000));
99 MockAnalyzer analyzer = new MockAnalyzer(random);
H A DTestDuelingAnalyzers.java24 import org.apache.lucene.analysis.MockAnalyzer;
44 Analyzer left = new MockAnalyzer(random, MockTokenizer.SIMPLE, false);
62 MockAnalyzer left = new MockAnalyzer(random, MockTokenizer.SIMPLE, false);
80 Analyzer left = new MockAnalyzer(random, MockTokenizer.SIMPLE, false);
97 MockAnalyzer left = new MockAnalyzer(random, MockTokenizer.SIMPLE, false);
115 Analyzer left = new MockAnalyzer(random, MockTokenizer.SIMPLE, false);
132 MockAnalyzer left = new MockAnalyzer(rando
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestNewestSegment.java20 import org.apache.lucene.analysis.MockAnalyzer;
28 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
H A DTestIndexWriterMergePolicy.java22 import org.apache.lucene.analysis.MockAnalyzer;
37 TEST_VERSION_CURRENT, new MockAnalyzer(random))
54 TEST_VERSION_CURRENT, new MockAnalyzer(random))
79 TEST_VERSION_CURRENT, new MockAnalyzer(random))
89 new MockAnalyzer(random)).setOpenMode(
105 newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).
136 TEST_VERSION_CURRENT, new MockAnalyzer(random))
150 new MockAnalyzer(random)).setOpenMode(
159 new MockAnalyzer(random)).setOpenMode(
188 TEST_VERSION_CURRENT, new MockAnalyzer(rando
[all...]
H A DTestParallelReaderEmptyIndex.java25 import org.apache.lucene.analysis.MockAnalyzer;
47 IndexWriter iw = new IndexWriter(rd1, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
54 IndexWriter iwOut = new IndexWriter(rdOut, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
77 IndexWriter iw = new IndexWriter(rd1, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
91 iw = new IndexWriter(rd1, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
98 IndexWriter iw = new IndexWriter(rd2, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
106 IndexWriter iwOut = new IndexWriter(rdOut, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
H A DTestSegmentTermEnum.java23 import org.apache.lucene.analysis.MockAnalyzer;
49 writer = new IndexWriter(dir, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
65 writer = new IndexWriter(dir, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
75 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestNewestSegment.java20 import org.apache.lucene.analysis.MockAnalyzer;
28 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
H A DTestIndexWriterMergePolicy.java22 import org.apache.lucene.analysis.MockAnalyzer;
37 TEST_VERSION_CURRENT, new MockAnalyzer(random))
54 TEST_VERSION_CURRENT, new MockAnalyzer(random))
79 TEST_VERSION_CURRENT, new MockAnalyzer(random))
89 new MockAnalyzer(random)).setOpenMode(
105 newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).
136 TEST_VERSION_CURRENT, new MockAnalyzer(random))
150 new MockAnalyzer(random)).setOpenMode(
159 new MockAnalyzer(random)).setOpenMode(
188 TEST_VERSION_CURRENT, new MockAnalyzer(rando
[all...]
H A DTestParallelReaderEmptyIndex.java25 import org.apache.lucene.analysis.MockAnalyzer;
47 IndexWriter iw = new IndexWriter(rd1, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
54 IndexWriter iwOut = new IndexWriter(rdOut, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
77 IndexWriter iw = new IndexWriter(rd1, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
91 iw = new IndexWriter(rd1, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
98 IndexWriter iw = new IndexWriter(rd2, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
106 IndexWriter iwOut = new IndexWriter(rdOut, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
H A DTestSegmentTermEnum.java23 import org.apache.lucene.analysis.MockAnalyzer;
49 writer = new IndexWriter(dir, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
65 writer = new IndexWriter(dir, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
75 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/queryParser/
H A DTestQueryParser.java21 import org.apache.lucene.analysis.MockAnalyzer;
31 a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true);
H A DTestMultiFieldQueryParser.java26 import org.apache.lucene.analysis.MockAnalyzer;
73 MultiFieldQueryParser mfqp = new MultiFieldQueryParser(TEST_VERSION_CURRENT, fields, new MockAnalyzer(random));
136 MultiFieldQueryParser mfqp = new MultiFieldQueryParser(TEST_VERSION_CURRENT, fields, new MockAnalyzer(random), boosts);
162 Query q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries, fields, new MockAnalyzer(random));
166 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries2, fields, new MockAnalyzer(random));
170 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries3, fields, new MockAnalyzer(random));
174 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries4, fields, new MockAnalyzer(random));
179 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries5, fields, new MockAnalyzer(random));
201 Query q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, "one", fields, flags, new MockAnalyzer(random));
204 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, "one two", fields, flags, new MockAnalyzer(rando
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/queryParser/
H A DTestQueryParser.java21 import org.apache.lucene.analysis.MockAnalyzer;
31 a = new MockAnalyzer(random, MockTokenizer.SIMPLE, true);
H A DTestMultiFieldQueryParser.java26 import org.apache.lucene.analysis.MockAnalyzer;
73 MultiFieldQueryParser mfqp = new MultiFieldQueryParser(TEST_VERSION_CURRENT, fields, new MockAnalyzer(random));
136 MultiFieldQueryParser mfqp = new MultiFieldQueryParser(TEST_VERSION_CURRENT, fields, new MockAnalyzer(random), boosts);
162 Query q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries, fields, new MockAnalyzer(random));
166 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries2, fields, new MockAnalyzer(random));
170 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries3, fields, new MockAnalyzer(random));
174 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries4, fields, new MockAnalyzer(random));
179 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, queries5, fields, new MockAnalyzer(random));
201 Query q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, "one", fields, flags, new MockAnalyzer(random));
204 q = MultiFieldQueryParser.parse(TEST_VERSION_CURRENT, "one two", fields, flags, new MockAnalyzer(rando
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/
H A DShingleAnalyzerWrapperTest.java25 import org.apache.lucene.analysis.MockAnalyzer;
108 (new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 2),
119 (new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 2),
130 (new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 2),
141 (new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 2),
151 Analyzer analyzer = new ShingleAnalyzerWrapper(new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 2);
181 Analyzer analyzer = new ShingleAnalyzerWrapper(new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 2);
205 Analyzer a = new ShingleAnalyzerWrapper(new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 2);
254 = new ShingleAnalyzerWrapper(new MockAnalyzer(random, MockTokenizer.WHITESPACE, false), 3, 4);
267 new MockAnalyzer(rando
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestMultiFieldQPHelper.java25 import org.apache.lucene.analysis.MockAnalyzer;
83 mfqp.setAnalyzer(new MockAnalyzer(random));
153 mfqp.setAnalyzer(new MockAnalyzer(random));
181 Query q = QueryParserUtil.parse(queries, fields, new MockAnalyzer(random));
185 q = QueryParserUtil.parse(queries2, fields, new MockAnalyzer(random));
189 q = QueryParserUtil.parse(queries3, fields, new MockAnalyzer(random));
193 q = QueryParserUtil.parse(queries4, fields, new MockAnalyzer(random));
198 q = QueryParserUtil.parse(queries5, fields, new MockAnalyzer(random));
222 new MockAnalyzer(random));
225 q = QueryParserUtil.parse("one two", fields, flags, new MockAnalyzer(rando
[all...]
/lucene-3.6.0/lucene/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/
H A DTestMultiSegmentReaderOnConstructor.java20 import org.apache.lucene.analysis.MockAnalyzer;
37 IndexWriter iw = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)));
42 iw = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
47 iw = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
H A DTestUnoptimizedReaderOnConstructor.java26 import org.apache.lucene.analysis.MockAnalyzer;
37 IndexWriter iw = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)));
42 iw = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
47 iw = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.APPEND));
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/synonym/
H A DTestSolrSynonymParser.java26 import org.apache.lucene.analysis.MockAnalyzer;
47 SolrSynonymParser parser = new SolrSynonymParser(true, true, new MockAnalyzer(random));
80 SolrSynonymParser parser = new SolrSynonymParser(true, true, new MockAnalyzer(random));
88 SolrSynonymParser parser = new SolrSynonymParser(true, true, new MockAnalyzer(random, MockTokenizer.SIMPLE, false));
96 SolrSynonymParser parser = new SolrSynonymParser(true, true, new MockAnalyzer(random, MockTokenizer.SIMPLE, false));
121 SolrSynonymParser parser = new SolrSynonymParser(true, true, new MockAnalyzer(random, MockTokenizer.KEYWORD, false));
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/surround/query/
H A DSingleFieldTestDb.java26 import org.apache.lucene.analysis.MockAnalyzer;
44 new MockAnalyzer(random)));
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/
H A DTestHighFrequencyDictionary.java20 import org.apache.lucene.analysis.MockAnalyzer;
32 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestNot.java26 import org.apache.lucene.analysis.MockAnalyzer;
49 QueryParser parser = new QueryParser(TEST_VERSION_CURRENT, "field", new MockAnalyzer(random));
H A DTestQueryTermVector.java21 import org.apache.lucene.analysis.MockAnalyzer;
39 result = new QueryTermVector("foo bar foo again foo bar go go go", new MockAnalyzer(random));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestNot.java26 import org.apache.lucene.analysis.MockAnalyzer;
49 QueryParser parser = new QueryParser(TEST_VERSION_CURRENT, "field", new MockAnalyzer(random));

Completed in 327 milliseconds

1234567891011>>