Searched defs:reader (Results 1 - 25 of 520) sorted by relevance

1234567891011>>

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DFilter.java39 * the top-level reader.
41 * @param reader a {@link IndexReader} instance opened on the index currently
42 * searched on. Note, it is likely that the provided reader does not
44 * one segment the given reader only represents a single segment.
52 public abstract DocIdSet getDocIdSet(IndexReader reader) throws IOException; argument
H A DSearcherFactory.java52 * Returns a new IndexSearcher over the given reader.
54 public IndexSearcher newSearcher(IndexReader reader) throws IOException { argument
55 return new IndexSearcher(reader);
H A DSpanFilter.java33 * @param reader The {@link org.apache.lucene.index.IndexReader} to load position and DocIdSet information from
37 public abstract SpanFilterResult bitSpans(IndexReader reader) throws IOException; argument
H A DFieldCacheDocIdSet.java34 protected final IndexReader reader; field in class:FieldCacheDocIdSet
36 public FieldCacheDocIdSet(IndexReader reader) { argument
37 this.reader = reader;
48 return !reader.hasDeletions();
53 if (!reader.hasDeletions()) {
55 final int maxDoc = reader.maxDoc();
87 final TermDocs termDocs = reader.termDocs(null);
H A DFieldCacheTermsFilter.java57 * reader per segment). Then, during matching, the term
110 public DocIdSet getDocIdSet(IndexReader reader) throws IOException { argument
111 final FieldCache.StringIndex fcsi = getFieldCache().getStringIndex(reader, field);
119 return new FieldCacheDocIdSet(reader) {
H A DScoringRewrite.java72 public Query rewrite(IndexReader reader, MultiTermQuery query) throws IOException {
73 final BooleanQuery bq = SCORING_BOOLEAN_QUERY_REWRITE.rewrite(reader, query);
90 public Q rewrite(final IndexReader reader, final MultiTermQuery query) throws IOException { argument
93 collectTerms(reader, query, new TermCollector() {
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedAllTermDocs.java24 private InstantiatedIndexReader reader; field in class:InstantiatedAllTermDocs
26 InstantiatedAllTermDocs(InstantiatedIndexReader reader) { argument
27 super(reader.maxDoc());
28 this.reader = reader;
33 return reader.isDeleted(doc);
/lucene-3.6.0/lucene/contrib/join/src/java/org/apache/lucene/search/join/
H A DRawTermFilter.java49 public DocIdSet getDocIdSet(final IndexReader reader) throws IOException { argument
50 if (!(reader instanceof SegmentReader)) {
51 throw new IllegalArgumentException("this filter can only work with SegmentReaders (got: " + reader + ")");
54 final SegmentReader segReader = (SegmentReader) reader;
/lucene-3.6.0/lucene/contrib/remote/src/java/org/apache/lucene/search/
H A DRemoteCachingWrapperFilter.java53 * @param reader the index reader for the Filter
57 public DocIdSet getDocIdSet(IndexReader reader) throws IOException { argument
59 return cachedFilter.getDocIdSet(reader);
/lucene-3.6.0/lucene/contrib/remote/src/test/org/apache/lucene/search/
H A DRemoteCachingWrapperFilterHelper.java44 public DocIdSet getDocIdSet(IndexReader reader) throws IOException { argument
57 return cachedFilter.getDocIdSet(reader);
/lucene-3.6.0/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/tier/
H A DCartesianShapeFilter.java47 public DocIdSet getDocIdSet(final IndexReader reader) throws IOException { argument
48 final FixedBitSet bits = new FixedBitSet(reader.maxDoc());
49 final TermDocs termDocs = reader.termDocs();
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DKeywordAnalyzer.java31 protected TokenStreamComponents createComponents(final String fieldName, final Reader reader) { argument
32 return new TokenStreamComponents(new KeywordTokenizer(reader));
H A DSimpleAnalyzer.java57 final Reader reader) {
58 return new TokenStreamComponents(new LowerCaseTokenizer(matchVersion, reader));
56 createComponents(final String fieldName, final Reader reader) argument
H A DWhitespaceAnalyzer.java59 final Reader reader) {
60 return new TokenStreamComponents(new WhitespaceTokenizer(matchVersion, reader));
58 createComponents(final String fieldName, final Reader reader) argument
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DMockFilter.java28 public DocIdSet getDocIdSet(IndexReader reader) { argument
H A DSingleDocTestFilter.java34 public DocIdSet getDocIdSet(IndexReader reader) throws IOException { argument
35 BitSet bits = new BitSet(reader.maxDoc());
H A DTestCachingSpanFilter.java48 // flipping a coin) may give us a newly opened reader,
49 // but we use .reopen on this reader below and expect to
50 // (must) get an NRT reader:
51 IndexReader reader = IndexReader.open(writer.w, true);
53 IndexSearcher searcher = newSearcher(reader, false);
55 // add a doc, refresh the reader, and check that its there
60 reader = refreshReader(reader);
62 searcher = newSearcher(reader, false);
78 // now delete the doc, refresh the reader, an
150 refreshReader(IndexReader reader) argument
[all...]
H A DTestNGramPhraseQuery.java30 private static IndexReader reader; field in class:TestNGramPhraseQuery
38 reader = IndexReader.open(directory);
43 reader.close();
44 reader = null;
55 Query q = pq1.rewrite(reader);
68 q = pq2.rewrite(reader);
84 q = pq3.rewrite(reader);
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/index/
H A DSlowMultiReaderWrapper.java30 public SlowMultiReaderWrapper(IndexReader reader) { argument
31 super(subReaders(reader));
34 private static IndexReader[] subReaders(IndexReader reader) { argument
36 ReaderUtil.gatherSubReaders(list, reader);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DMockFilter.java28 public DocIdSet getDocIdSet(IndexReader reader) { argument
H A DSingleDocTestFilter.java34 public DocIdSet getDocIdSet(IndexReader reader) throws IOException { argument
35 BitSet bits = new BitSet(reader.maxDoc());
H A DTestCachingSpanFilter.java48 // flipping a coin) may give us a newly opened reader,
49 // but we use .reopen on this reader below and expect to
50 // (must) get an NRT reader:
51 IndexReader reader = IndexReader.open(writer.w, true);
53 IndexSearcher searcher = newSearcher(reader, false);
55 // add a doc, refresh the reader, and check that its there
60 reader = refreshReader(reader);
62 searcher = newSearcher(reader, false);
78 // now delete the doc, refresh the reader, an
150 refreshReader(IndexReader reader) argument
[all...]
H A DTestNGramPhraseQuery.java30 private static IndexReader reader; field in class:TestNGramPhraseQuery
38 reader = IndexReader.open(directory);
43 reader.close();
44 reader = null;
55 Query q = pq1.rewrite(reader);
68 q = pq2.rewrite(reader);
84 q = pq3.rewrite(reader);
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/index/
H A DSlowMultiReaderWrapper.java30 public SlowMultiReaderWrapper(IndexReader reader) { argument
31 super(subReaders(reader));
34 private static IndexReader[] subReaders(IndexReader reader) { argument
36 ReaderUtil.gatherSubReaders(list, reader);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/cn/
H A DChineseAnalyzer.java47 Reader reader) {
48 final Tokenizer source = new ChineseTokenizer(reader);
46 createComponents(String fieldName, Reader reader) argument

Completed in 2385 milliseconds

1234567891011>>