Package | Description |
---|---|
org.apache.lucene.analysis.query |
Automatically filter high-frequency stopwords.
|
org.apache.lucene.benchmark.byTask |
Benchmarking Lucene By Tasks.
|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
org.apache.lucene.facet.enhancements |
Enhanced category features
Mechanisms for addition of enhanced category features.
|
org.apache.lucene.facet.enhancements.association |
Association category enhancements
A
CategoryEnhancement
for adding associations data to the index (categories with
AssociationProperty 's). |
org.apache.lucene.facet.index |
Indexing of document categories
Attachment of
CategoryPath 's
or CategoryAttribute 's
to a given document using a
Taxonomy . |
org.apache.lucene.facet.index.params |
Indexing-time specifications for handling facets
Parameters on how facets are to be written to the index,
such as which fields and terms are used to refer to the facets posting list.
|
org.apache.lucene.facet.search |
Faceted Search API
API for faceted search has several interfaces - simple, top level ones, adequate for most users,
and advanced, more complicated ones, for the more advanced users.
|
org.apache.lucene.facet.search.aggregator.association |
Association-based aggregators.
|
org.apache.lucene.facet.search.cache |
Caching to speed up facets accumulation.
|
org.apache.lucene.facet.search.params |
Parameters for Faceted Search
|
org.apache.lucene.facet.search.params.association |
Association-based Parameters for Faceted Search.
|
org.apache.lucene.facet.search.sampling |
Sampling for facets accumulation
|
org.apache.lucene.facet.taxonomy.directory |
Taxonomy implemented using a Lucene-Index
|
org.apache.lucene.facet.util |
Various utilities for faceted search
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.pruning |
Static Index Pruning Tools
This package provides a framework for pruning an existing index into
a smaller index while retaining visible search quality as much as possible.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.queryParser.surround.query |
This package contains SrndQuery and its subclasses.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.function |
Programmatic control over documents scores.
|
org.apache.lucene.search.grouping |
This module enables search result grouping with Lucene, where hits
with the same value in the specified single-valued group field are
grouped together.
|
org.apache.lucene.search.highlight |
The highlight package contains classes to provide "keyword in context" features
typically used to highlight search terms in the text of results pages.
|
org.apache.lucene.search.join |
This modules support index-time and query-time joins.
|
org.apache.lucene.search.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search.regex |
Regular expression Query.
|
org.apache.lucene.search.similar |
Document similarity query generators.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
org.apache.lucene.search.vectorhighlight |
This is an another highlighter implementation.
|
org.apache.lucene.spatial.geohash |
Support for Geohash encoding, decoding, and filtering.
|
org.apache.lucene.spatial.tier |
Support for filtering based upon geographic location.
|
org.apache.lucene.store.instantiated |
InstantiatedIndex, alternative RAM store for small corpora.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
int |
QueryAutoStopWordAnalyzer.addStopWords(IndexReader reader)
Deprecated.
Stopwords should be calculated at instantiation using
QueryAutoStopWordAnalyzer.QueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader) |
int |
QueryAutoStopWordAnalyzer.addStopWords(IndexReader reader,
float maxPercentDocs)
Deprecated.
Stowords should be calculated at instantiation using
QueryAutoStopWordAnalyzer.QueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, float) |
int |
QueryAutoStopWordAnalyzer.addStopWords(IndexReader reader,
int maxDocFreq)
Deprecated.
Stopwords should be calculated at instantiation using
QueryAutoStopWordAnalyzer.QueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, int) |
int |
QueryAutoStopWordAnalyzer.addStopWords(IndexReader reader,
String fieldName,
float maxPercentDocs)
Deprecated.
Stowords should be calculated at instantiation using
QueryAutoStopWordAnalyzer.QueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, Collection, float) |
int |
QueryAutoStopWordAnalyzer.addStopWords(IndexReader reader,
String fieldName,
int maxDocFreq)
Deprecated.
Stowords should be calculated at instantiation using
QueryAutoStopWordAnalyzer.QueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, Collection, int) |
Constructor and Description |
---|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency percentage greater than
QueryAutoStopWordAnalyzer.defaultMaxDocFreqPercent |
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
Collection<String> fields,
float maxPercentDocs)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the
given selection of fields from terms with a document frequency percentage
greater than the given maxPercentDocs
|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
Collection<String> fields,
int maxDocFreq)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the
given selection of fields from terms with a document frequency greater than
the given maxDocFreq
|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
float maxPercentDocs)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency percentage greater than
the given maxPercentDocs
|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
int maxDocFreq)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency greater than the given
maxDocFreq
|
Modifier and Type | Method and Description |
---|---|
IndexReader |
PerfRunData.getIndexReader() |
Modifier and Type | Method and Description |
---|---|
void |
PerfRunData.setIndexReader(IndexReader indexReader)
Set the index reader.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
BenchmarkHighlighter.doHighlight(IndexReader reader,
int doc,
String field,
Document document,
Analyzer analyzer,
String text) |
protected Document |
SearchTravRetLoadFieldSelectorTask.retrieveDoc(IndexReader ir,
int id) |
protected Document |
ReadTask.retrieveDoc(IndexReader ir,
int id) |
Constructor and Description |
---|
EnhancementsPayloadIterator(List<CategoryEnhancement> enhancementsList,
IndexReader indexReader,
Term term)
Constructor.
|
Constructor and Description |
---|
AssociationsPayloadIterator(IndexReader reader,
String field)
Construct a new association-iterator, initializing the inner payload
iterator, with the supplied term and checking whether there are any
associations within the given index
|
Modifier and Type | Method and Description |
---|---|
PayloadProcessorProvider.ReaderPayloadProcessor |
FacetsPayloadProcessorProvider.getReaderProcessor(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
CategoryListIterator |
CategoryListParams.createCategoryListIterator(IndexReader reader,
int partition)
Create the category list iterator for the specified partition.
|
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
FacetsAccumulator.indexReader |
Modifier and Type | Method and Description |
---|---|
TotalFacetCounts |
TotalFacetCountsCache.getTotalCounts(IndexReader indexReader,
TaxonomyReader taxonomy,
FacetIndexingParams facetIndexingParams,
CategoryListCache clCache)
Get the total facet counts for a reader/taxonomy pair and facet indexing parameters.
|
protected FacetsAccumulator |
FacetsCollector.initFacetsAccumulator(FacetSearchParams facetSearchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Create the
FacetsAccumulator to be used. |
protected ScoredDocIdCollector |
FacetsCollector.initScoredDocCollector(FacetSearchParams facetSearchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Create a
ScoredDocIdCollector to be used as the first phase of
the facet collection. |
void |
TotalFacetCountsCache.load(File inputFile,
IndexReader indexReader,
TaxonomyReader taxonomy,
FacetIndexingParams facetIndexingParams)
Load
TotalFacetCounts matching input parameters from the provided outputFile
and add them into the cache for the provided indexReader, taxonomy, and facetIndexingParams. |
void |
ScoredDocIdCollector.setNextReader(IndexReader reader,
int base) |
void |
FacetsCollector.setNextReader(IndexReader reader,
int docBase) |
void |
TotalFacetCountsCache.store(File outputFile,
IndexReader indexReader,
TaxonomyReader taxonomy,
FacetIndexingParams facetIndexingParams,
CategoryListCache clCache)
Store the
TotalFacetCounts matching input parameters into the provided outputFile,
making them available for a later call to TotalFacetCountsCache.load(File, IndexReader, TaxonomyReader, FacetIndexingParams) . |
Constructor and Description |
---|
AssociationFloatSumAggregator(IndexReader reader,
float[] sumArray) |
AssociationFloatSumAggregator(String field,
IndexReader reader,
float[] sumArray) |
AssociationIntSumAggregator(IndexReader reader,
int[] sumArray) |
AssociationIntSumAggregator(String field,
IndexReader reader,
int[] sumArray) |
Modifier and Type | Method and Description |
---|---|
void |
CategoryListCache.loadAndRegister(CategoryListParams clp,
IndexReader reader,
TaxonomyReader taxo,
FacetIndexingParams iparams)
Load and register
CategoryListData . |
Modifier and Type | Method and Description |
---|---|
Aggregator |
ScoreFacetRequest.createAggregator(boolean useComplements,
FacetArrays arrays,
IndexReader reader,
TaxonomyReader taxonomy) |
abstract Aggregator |
FacetRequest.createAggregator(boolean useComplements,
FacetArrays arrays,
IndexReader indexReader,
TaxonomyReader taxonomy)
Create an aggregator for this facet request.
|
Aggregator |
CountFacetRequest.createAggregator(boolean useComplements,
FacetArrays arrays,
IndexReader reader,
TaxonomyReader taxonomy) |
CategoryListIterator |
FacetRequest.createCategoryListIterator(IndexReader reader,
TaxonomyReader taxo,
FacetSearchParams sParams,
int partition)
Create the category list iterator for the specified partition.
|
Modifier and Type | Method and Description |
---|---|
Aggregator |
AssociationIntSumFacetRequest.createAggregator(boolean useComplements,
FacetArrays arrays,
IndexReader reader,
TaxonomyReader taxonomy) |
Aggregator |
AssociationFloatSumFacetRequest.createAggregator(boolean useComplements,
FacetArrays arrays,
IndexReader reader,
TaxonomyReader taxonomy) |
Modifier and Type | Method and Description |
---|---|
SampleFixer |
Sampler.getSampleFixer(IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetSearchParams searchParams)
Get a fixer of sample facet accumulation results.
|
Constructor and Description |
---|
SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Constructor...
|
SamplingAccumulator(Sampler sampler,
FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
IntArrayAllocator intArrayAllocator,
FloatArrayAllocator floatArrayAllocator)
Constructor...
|
Modifier and Type | Method and Description |
---|---|
protected IndexReader |
DirectoryTaxonomyReader.openIndexReader(Directory directory) |
protected IndexReader |
DirectoryTaxonomyWriter.openReader()
|
Modifier and Type | Method and Description |
---|---|
static ScoredDocIDs |
ScoredDocIdsUtils.createAllDocsScoredDocIDs(IndexReader reader)
Creates a
ScoredDocIDs which returns document IDs all non-deleted doc ids
according to the given reader. |
static ScoredDocIDs |
ScoredDocIdsUtils.getComplementSet(ScoredDocIDs docids,
IndexReader reader)
Create a complement of the input set.
|
Modifier and Type | Class and Description |
---|---|
class |
FilterIndexReader
A
FilterIndexReader contains another IndexReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
MultiReader
An IndexReader which reads multiple indexes, appending
their content.
|
class |
ParallelReader
An IndexReader which reads multiple, parallel indexes.
|
class |
PruningReader
This class produces a subset of the input index, by removing some postings
data according to rules implemented in a
TermPruningPolicy , and
optionally it can also remove stored fields of documents according to rules
implemented in a StorePruningPolicy . |
class |
SegmentReader
IndexReader implementation over a single segment.
|
class |
SlowMultiReaderWrapper
Acts like Lucene 4.x's SlowMultiReaderWrapper for testing
of top-level MultiTermEnum, MultiTermDocs, ...
|
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
FilterIndexReader.in |
protected IndexReader[] |
MultiReader.subReaders |
Modifier and Type | Method and Description |
---|---|
IndexReader |
SegmentReader.clone(boolean openReadOnly)
Deprecated.
|
IndexReader |
ParallelReader.clone(boolean openReadOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
ParallelReader.clone() instead. |
IndexReader |
MultiReader.clone(boolean openReadOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
MultiReader.clone() instead. |
IndexReader |
IndexReader.clone(boolean openReadOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
clone() instead. |
protected IndexReader |
SegmentReader.doOpenIfChanged() |
protected IndexReader |
ParallelReader.doOpenIfChanged() |
protected IndexReader |
MultiReader.doOpenIfChanged() |
protected IndexReader |
IndexReader.doOpenIfChanged()
If the index has changed since it was opened, open and return a new reader;
else, return
null . |
protected IndexReader |
SegmentReader.doOpenIfChanged(boolean openReadOnly)
Deprecated.
|
protected IndexReader |
ParallelReader.doOpenIfChanged(boolean openReadOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
ParallelReader.doOpenIfChanged() instead. |
protected IndexReader |
MultiReader.doOpenIfChanged(boolean openReadOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
MultiReader.doOpenIfChanged() instead. |
protected IndexReader |
IndexReader.doOpenIfChanged(boolean openReadOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
doOpenIfChanged() instead |
protected IndexReader |
IndexReader.doOpenIfChanged(IndexCommit commit)
If the index has changed since it was opened, open and return a new reader;
else, return
null . |
protected IndexReader |
IndexReader.doOpenIfChanged(IndexWriter writer,
boolean applyAllDeletes)
If the index has changed since it was opened, open and return a new reader;
else, return
null . |
IndexReader |
RandomIndexWriter.getReader() |
IndexReader |
IndexWriter.getReader()
Deprecated.
Please use
open(IndexWriter,boolean) instead. |
IndexReader |
RandomIndexWriter.getReader(boolean applyDeletions) |
IndexReader |
IndexWriter.getReader(int termInfosIndexDivisor)
Deprecated.
Please use
open(IndexWriter,boolean) instead. Furthermore,
this method cannot guarantee the reader (and its
sub-readers) will be opened with the
termInfosIndexDivisor setting because some of them may
have already been opened according to IndexWriterConfig.setReaderTermsIndexDivisor(int) . You
should set the requested termInfosIndexDivisor through
IndexWriterConfig.setReaderTermsIndexDivisor(int) and use
IndexWriter.getReader() . |
IndexReader[] |
PruningReader.getSequentialSubReaders() |
IndexReader[] |
SlowMultiReaderWrapper.getSequentialSubReaders() |
IndexReader[] |
MultiReader.getSequentialSubReaders() |
IndexReader[] |
IndexReader.getSequentialSubReaders()
Expert: returns the sequential sub readers that this
reader is logically composed of.
|
IndexReader[] |
FilterIndexReader.getSequentialSubReaders() |
static IndexReader |
IndexReader.open(Directory directory)
Returns a IndexReader reading the index in the given
Directory, with readOnly=true.
|
static IndexReader |
IndexReader.open(Directory directory,
boolean readOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
open(Directory) instead |
static IndexReader |
IndexReader.open(Directory directory,
IndexDeletionPolicy deletionPolicy,
boolean readOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
open(Directory) instead |
static IndexReader |
IndexReader.open(Directory directory,
IndexDeletionPolicy deletionPolicy,
boolean readOnly,
int termInfosIndexDivisor)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
open(Directory,int) instead |
static IndexReader |
IndexReader.open(Directory directory,
int termInfosIndexDivisor)
Expert: Returns a IndexReader reading the index in the given
Director and given termInfosIndexDivisor
|
static IndexReader |
IndexReader.open(IndexCommit commit)
Expert: returns an IndexReader reading the index in the given
IndexCommit . |
static IndexReader |
IndexReader.open(IndexCommit commit,
boolean readOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
open(IndexCommit) instead |
static IndexReader |
IndexReader.open(IndexCommit commit,
IndexDeletionPolicy deletionPolicy,
boolean readOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
open(IndexCommit) instead |
static IndexReader |
IndexReader.open(IndexCommit commit,
IndexDeletionPolicy deletionPolicy,
boolean readOnly,
int termInfosIndexDivisor)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
open(IndexCommit,int) instead |
static IndexReader |
IndexReader.open(IndexCommit commit,
int termInfosIndexDivisor)
Expert: returns an IndexReader reading the index in the given
IndexCommit and termInfosIndexDivisor. |
static IndexReader |
IndexReader.open(IndexWriter writer,
boolean applyAllDeletes)
Open a near real time IndexReader from the
IndexWriter . |
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader)
If the index has changed since the provided reader was
opened, open and return a new reader; else, return
null.
|
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader,
boolean readOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
openIfChanged(IndexReader) instead |
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader,
IndexCommit commit)
If the IndexCommit differs from what the
provided reader is searching, or the provided reader is
not already read-only, open and return a new
readOnly=true reader; else, return null. |
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader,
IndexWriter writer,
boolean applyAllDeletes)
Expert: If there changes (committed or not) in the
IndexWriter versus what the provided reader is
searching, then open and return a new read-only
IndexReader searching both committed and uncommitted
changes from the writer; else, return null (though, the
current implementation never returns null). |
IndexReader |
IndexReader.reopen()
Deprecated.
Use
openIfChanged(IndexReader) instead |
IndexReader |
IndexReader.reopen(boolean openReadOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
openIfChanged(IndexReader) instead |
IndexReader |
IndexReader.reopen(IndexCommit commit)
Deprecated.
Use
openIfChanged(IndexReader,IndexCommit) instead |
IndexReader |
IndexReader.reopen(IndexWriter writer,
boolean applyAllDeletes)
Deprecated.
Use
openIfChanged(IndexReader,IndexWriter,boolean) instead |
Modifier and Type | Method and Description |
---|---|
void |
TermVectorAccessor.accept(IndexReader indexReader,
int documentNumber,
String fieldName,
TermVectorMapper mapper)
Visits the TermVectorMapper and populates it with terms available for a given document,
either via a vector created at index time or by resolving them from the inverted index.
|
void |
ParallelReader.add(IndexReader reader)
Add an IndexReader.
|
void |
ParallelReader.add(IndexReader reader,
boolean ignoreStoredFields)
Add an IndexReader whose stored fields will not be returned.
|
void |
RandomIndexWriter.addIndexes(IndexReader... readers) |
void |
IndexWriter.addIndexes(IndexReader... readers)
Merges the provided indexes into this index.
|
PayloadProcessorProvider.ReaderPayloadProcessor |
PayloadProcessorProvider.getReaderProcessor(IndexReader reader)
Returns a
PayloadProcessorProvider.ReaderPayloadProcessor for the given Directory ,
through which PayloadProcessorProvider.PayloadProcessor s can be obtained for each
Term , or null if none should be used. |
void |
IndexReader.ReaderClosedListener.onClose(IndexReader reader) |
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader)
If the index has changed since the provided reader was
opened, open and return a new reader; else, return
null.
|
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader,
boolean readOnly)
Deprecated.
Write support will be removed in Lucene 4.0.
Use
openIfChanged(IndexReader) instead |
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader,
IndexCommit commit)
If the IndexCommit differs from what the
provided reader is searching, or the provided reader is
not already read-only, open and return a new
readOnly=true reader; else, return null. |
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader,
IndexWriter writer,
boolean applyAllDeletes)
Expert: If there changes (committed or not) in the
IndexWriter versus what the provided reader is
searching, then open and return a new read-only
IndexReader searching both committed and uncommitted
changes from the writer; else, return null (though, the
current implementation never returns null). |
void |
MultiPassIndexSplitter.split(IndexReader input,
Directory[] outputs,
boolean seq)
Deprecated.
use
MultiPassIndexSplitter.split(Version, IndexReader, Directory[], boolean) instead.
This method will be removed in Lucene 4.0. |
void |
MultiPassIndexSplitter.split(Version version,
IndexReader input,
Directory[] outputs,
boolean seq)
Split source index into multiple parts.
|
abstract void |
IndexWriter.IndexReaderWarmer.warm(IndexReader reader) |
Constructor and Description |
---|
FilterIndexReader(IndexReader in)
Construct a FilterIndexReader based on the specified base reader.
|
MultipleTermPositions(IndexReader indexReader,
Term[] terms)
Creates a new
MultipleTermPositions instance. |
MultiReader(IndexReader... subReaders)
Construct a MultiReader aggregating the named set of (sub)readers.
|
MultiReader(IndexReader[] subReaders,
boolean closeSubReaders)
Construct a MultiReader aggregating the named set of (sub)readers.
|
PruningReader(IndexReader in,
StorePruningPolicy storePolicy,
TermPruningPolicy termPolicy)
Constructor.
|
SlowMultiReaderWrapper(IndexReader reader) |
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
TermPruningPolicy.in |
protected IndexReader |
StorePruningPolicy.in |
Constructor and Description |
---|
CarmelTopKTermPruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags)
Constructor with default parameters
|
CarmelTopKTermPruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags,
int k,
float epsilon,
int r,
Similarity sim)
Constructor with specific settings
|
CarmelUniformTermPruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags,
Map<String,Float> thresholds,
float defThreshold,
Similarity sim) |
RIDFTermPruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags,
Map<String,Double> thresholds,
double defThreshold) |
StorePruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags)
Constructs a policy.
|
TermPruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags)
Construct a policy.
|
TFTermPruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags,
Map<String,Integer> thresholds,
int defThreshold) |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.misc.TermStats[] |
HighFreqTerms.getHighFreqTerms(IndexReader reader,
int numTerms,
String field) |
static long |
HighFreqTerms.getTotalTermFreq(IndexReader reader,
Term term) |
static org.apache.lucene.misc.TermStats[] |
HighFreqTerms.sortByTotalTermFreq(IndexReader reader,
org.apache.lucene.misc.TermStats[] terms)
Takes array of TermStats.
|
Modifier and Type | Method and Description |
---|---|
IndexReader |
SpanNearClauseFactory.getIndexReader() |
Modifier and Type | Method and Description |
---|---|
Query |
DistanceQuery.getSpanNearQuery(IndexReader reader,
String fieldName,
float boost,
BasicQueryFactory qf) |
void |
SrndTruncQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndTermQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndPrefixQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
abstract void |
SimpleTerm.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
Constructor and Description |
---|
SpanNearClauseFactory(IndexReader reader,
String fieldName,
BasicQueryFactory qf) |
Modifier and Type | Field and Description |
---|---|
protected static IndexReader |
SearchEquivalenceTestBase.reader |
protected IndexReader |
FieldCacheDocIdSet.reader |
protected IndexReader[] |
IndexSearcher.subReaders |
Modifier and Type | Method and Description |
---|---|
IndexReader |
IndexSearcher.getIndexReader()
Return the
IndexReader this searches. |
IndexReader[] |
IndexSearcher.getSubReaders()
Returns the atomic subReaders used by this searcher.
|
Modifier and Type | Method and Description |
---|---|
long |
NRTManager.TrackingIndexWriter.addIndexes(IndexReader... readers) |
SpanFilterResult |
SpanQueryFilter.bitSpans(IndexReader reader) |
abstract SpanFilterResult |
SpanFilter.bitSpans(IndexReader reader)
Returns a SpanFilterResult with true for documents which should be permitted in
search results, and false for those that should not and Spans for where the true docs match.
|
SpanFilterResult |
CachingSpanFilter.bitSpans(IndexReader reader) |
protected DocIdSet |
CachingWrapperFilter.docIdSetToCache(DocIdSet docIdSet,
IndexReader reader)
Provide the DocIdSet to be cached, using the DocIdSet provided
by the wrapped Filter.
|
abstract Explanation |
Weight.explain(IndexReader reader,
int doc)
An explanation of the score computation for the named document.
|
Explanation |
DisjunctionMaxQuery.DisjunctionMaxWeight.explain(IndexReader reader,
int doc)
Explain the score we computed for doc
|
Explanation |
ConstantScoreQuery.ConstantWeight.explain(IndexReader reader,
int doc) |
Explanation |
BooleanQuery.BooleanWeight.explain(IndexReader reader,
int doc) |
protected void |
IndexSearcher.gatherSubReaders(List<IndexReader> allSubReaders,
IndexReader r) |
byte[] |
FieldCache.getBytes(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in
field as a single byte and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
byte[] |
FieldCache.getBytes(IndexReader reader,
String field,
FieldCache.ByteParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as bytes and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
byte[] |
FieldCache.getBytes(IndexReader reader,
String field,
FieldCache.ByteParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as bytes and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
DocIdSet |
RemoteCachingWrapperFilter.getDocIdSet(IndexReader reader)
Deprecated.
Uses the
FilterManager to keep the cache for a filter on the
searcher side of a remote connection. |
DocIdSet |
TermsFilter.getDocIdSet(IndexReader reader) |
DocIdSet |
DuplicateFilter.getDocIdSet(IndexReader reader) |
DocIdSet |
ChainedFilter.getDocIdSet(IndexReader reader)
|
DocIdSet |
BooleanFilter.getDocIdSet(IndexReader reader)
Returns the a DocIdSetIterator representing the Boolean composition
of the filters that have been added.
|
DocIdSet |
CachingWrapperFilterHelper.getDocIdSet(IndexReader reader) |
DocIdSet |
SpanQueryFilter.getDocIdSet(IndexReader reader) |
DocIdSet |
QueryWrapperFilter.getDocIdSet(IndexReader reader) |
DocIdSet |
MultiTermQueryWrapperFilter.getDocIdSet(IndexReader reader)
Returns a DocIdSet with documents that should be
permitted in search results.
|
abstract DocIdSet |
Filter.getDocIdSet(IndexReader reader)
Creates a
DocIdSet enumerating the documents that should be
permitted in search results. |
DocIdSet |
FieldValueFilter.getDocIdSet(IndexReader reader) |
DocIdSet |
FieldCacheTermsFilter.getDocIdSet(IndexReader reader) |
abstract DocIdSet |
FieldCacheRangeFilter.getDocIdSet(IndexReader reader)
This method is implemented for each data type
|
DocIdSet |
CachingWrapperFilter.getDocIdSet(IndexReader reader) |
DocIdSet |
CachingSpanFilter.getDocIdSet(IndexReader reader) |
Bits |
FieldCache.getDocsWithField(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field and returns a bit set at the size of
reader.maxDoc() , with turned on bits for each docid that
does have a value for this field. |
double[] |
FieldCache.getDoubles(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in
field as integers and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
double[] |
FieldCache.getDoubles(IndexReader reader,
String field,
FieldCache.DoubleParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as doubles and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
double[] |
FieldCache.getDoubles(IndexReader reader,
String field,
FieldCache.DoubleParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as doubles and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
protected FilteredTermEnum |
WildcardQuery.getEnum(IndexReader reader) |
protected FilteredTermEnum |
TermRangeQuery.getEnum(IndexReader reader) |
protected FilteredTermEnum |
PrefixQuery.getEnum(IndexReader reader) |
protected FilteredTermEnum |
NumericRangeQuery.getEnum(IndexReader reader) |
protected abstract FilteredTermEnum |
MultiTermQuery.getEnum(IndexReader reader)
Construct the enumeration to be used, expanding the pattern term.
|
protected FilteredTermEnum |
FuzzyQuery.getEnum(IndexReader reader) |
float[] |
FieldCache.getFloats(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
float[] |
FieldCache.getFloats(IndexReader reader,
String field,
FieldCache.FloatParser parser)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
float[] |
FieldCache.getFloats(IndexReader reader,
String field,
FieldCache.FloatParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
int[] |
FieldCache.getInts(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in
field as integers and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
int[] |
FieldCache.getInts(IndexReader reader,
String field,
FieldCache.IntParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as integers and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
int[] |
FieldCache.getInts(IndexReader reader,
String field,
FieldCache.IntParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as integers and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
long[] |
FieldCache.getLongs(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in
field as longs and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
long[] |
FieldCache.getLongs(IndexReader reader,
String field,
FieldCache.LongParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as longs and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
long[] |
FieldCache.getLongs(IndexReader reader,
String field,
FieldCache.LongParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as longs and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
short[] |
FieldCache.getShorts(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in
field as shorts and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
short[] |
FieldCache.getShorts(IndexReader reader,
String field,
FieldCache.ShortParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as shorts and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
short[] |
FieldCache.getShorts(IndexReader reader,
String field,
FieldCache.ShortParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as shorts and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
FieldCache.StringIndex |
FieldCache.getStringIndex(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none
is found reads the term values in
field and returns
an array of them in natural order, along with an array telling
which element in the term array each document uses. |
String[] |
FieldCache.getStrings(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in
field and returns an array
of size reader.maxDoc() containing the value each document
has in the given field. |
protected FilteredTermEnum |
MultiTermQuery.RewriteMethod.getTermsEnum(IndexReader reader,
MultiTermQuery query)
Returns the
MultiTermQuery s FilteredTermEnum |
IndexSearcher |
SearcherFactory.newSearcher(IndexReader reader)
Returns a new IndexSearcher over the given reader.
|
void |
FieldCache.purge(IndexReader r)
Expert: drops all cache entries associated with this
reader.
|
Query |
FuzzyLikeThisQuery.rewrite(IndexReader reader) |
Query |
BoostingQuery.rewrite(IndexReader reader) |
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
PhraseQuery.rewrite(IndexReader reader) |
Query |
NGramPhraseQuery.rewrite(IndexReader reader) |
Query |
MultiTermQuery.rewrite(IndexReader reader)
To rewrite to a simpler form, instead return a simpler
enum from
MultiTermQuery.getEnum(IndexReader) . |
Query |
MultiPhraseQuery.rewrite(IndexReader reader) |
Query |
FilteredQuery.rewrite(IndexReader reader)
Rewrites the wrapped query.
|
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations
|
Query |
ConstantScoreQuery.rewrite(IndexReader reader) |
Query |
BooleanQuery.rewrite(IndexReader reader) |
Q |
TopTermsRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Q |
ScoringRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
abstract Query |
MultiTermQuery.RewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
abstract Scorer |
Weight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer)
Returns a
Scorer which scores documents in/out-of order according
to scoreDocsInOrder . |
Scorer |
DisjunctionMaxQuery.DisjunctionMaxWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer)
Create the scorer used to score our associated DisjunctionMaxQuery
|
Scorer |
ConstantScoreQuery.ConstantWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Scorer |
BooleanQuery.BooleanWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
void |
CheckHits.SetCollector.setNextReader(IndexReader reader,
int docBase) |
void |
CheckHits.ExplanationAsserter.setNextReader(IndexReader reader,
int docBase) |
void |
TotalHitCountCollector.setNextReader(IndexReader reader,
int docBase) |
void |
TopScoreDocCollector.setNextReader(IndexReader reader,
int base) |
void |
TimeLimitingCollector.setNextReader(IndexReader reader,
int base) |
void |
PositiveScoresOnlyCollector.setNextReader(IndexReader reader,
int docBase) |
void |
MultiCollector.setNextReader(IndexReader reader,
int o) |
abstract void |
FieldComparator.setNextReader(IndexReader reader,
int docBase)
Set a new Reader.
|
void |
FieldComparator.NumericComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.ByteComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.DocComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.DoubleComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.FloatComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.IntComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.LongComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.RelevanceComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.ShortComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.StringComparatorLocale.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.StringOrdValComparator.setNextReader(IndexReader reader,
int docBase) |
void |
FieldComparator.StringValComparator.setNextReader(IndexReader reader,
int docBase) |
abstract void |
Collector.setNextReader(IndexReader reader,
int docBase)
Called before collecting from each IndexReader.
|
void |
CachingCollector.setNextReader(IndexReader reader,
int docBase) |
Modifier and Type | Method and Description |
---|---|
protected void |
IndexSearcher.gatherSubReaders(List<IndexReader> allSubReaders,
IndexReader r) |
Constructor and Description |
---|
AssertingIndexSearcher(IndexReader r) |
AssertingIndexSearcher(IndexReader r,
ExecutorService ex) |
CheckHits.ExplanationAssertingSearcher(IndexReader r) |
FieldCacheDocIdSet(IndexReader reader) |
FuzzyTermEnum(IndexReader reader,
Term term)
Creates a FuzzyTermEnum with an empty prefix and a minSimilarity of 0.5f.
|
FuzzyTermEnum(IndexReader reader,
Term term,
float minSimilarity)
Creates a FuzzyTermEnum with an empty prefix.
|
FuzzyTermEnum(IndexReader reader,
Term term,
float minSimilarity,
int prefixLength)
Constructor for enumeration of all terms from specified
reader which share a prefix of
length prefixLength with term and which have a fuzzy similarity >
minSimilarity . |
IndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
IndexSearcher(IndexReader r,
ExecutorService executor)
Runs searches for each segment separately, using the
provided ExecutorService.
|
IndexSearcher(IndexReader reader,
IndexReader[] subReaders,
int[] docStarts)
Expert: directly specify the reader, subReaders and
their docID starts.
|
IndexSearcher(IndexReader reader,
IndexReader[] subReaders,
int[] docStarts)
Expert: directly specify the reader, subReaders and
their docID starts.
|
IndexSearcher(IndexReader reader,
IndexReader[] subReaders,
int[] docStarts,
ExecutorService executor)
Expert: directly specify the reader, subReaders and
their docID starts, and an ExecutorService.
|
IndexSearcher(IndexReader reader,
IndexReader[] subReaders,
int[] docStarts,
ExecutorService executor)
Expert: directly specify the reader, subReaders and
their docID starts, and an ExecutorService.
|
PrefixTermEnum(IndexReader reader,
Term prefix) |
SingleTermEnum(IndexReader reader,
Term singleTerm)
Creates a new
SingleTermEnum . |
TermRangeTermEnum(IndexReader reader,
String field,
String lowerTermText,
String upperTermText,
boolean includeLower,
boolean includeUpper,
Collator collator)
Enumerates all terms greater/equal than
lowerTerm
but less/equal than upperTerm . |
WildcardTermEnum(IndexReader reader,
Term term)
Creates a new
WildcardTermEnum . |
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
CustomScoreProvider.reader |
Modifier and Type | Method and Description |
---|---|
DocValues |
ShortFieldSource.getCachedFieldValues(FieldCache cache,
String field,
IndexReader reader) |
DocValues |
IntFieldSource.getCachedFieldValues(FieldCache cache,
String field,
IndexReader reader) |
DocValues |
FloatFieldSource.getCachedFieldValues(FieldCache cache,
String field,
IndexReader reader) |
abstract DocValues |
FieldCacheSource.getCachedFieldValues(FieldCache cache,
String field,
IndexReader reader)
Return cached DocValues for input field and reader.
|
DocValues |
ByteFieldSource.getCachedFieldValues(FieldCache cache,
String field,
IndexReader reader) |
protected CustomScoreProvider |
CustomScoreQuery.getCustomScoreProvider(IndexReader reader)
Returns a
CustomScoreProvider that calculates the custom scores
for the given IndexReader . |
abstract DocValues |
ValueSource.getValues(IndexReader reader)
Return the DocValues used by the function query.
|
DocValues |
ReverseOrdFieldSource.getValues(IndexReader reader) |
DocValues |
OrdFieldSource.getValues(IndexReader reader) |
DocValues |
FieldCacheSource.getValues(IndexReader reader) |
Query |
ValueSourceQuery.rewrite(IndexReader reader) |
Query |
CustomScoreQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
CustomScoreProvider(IndexReader reader)
Creates a new instance of the provider class for the given
IndexReader . |
Modifier and Type | Method and Description |
---|---|
void |
TermSecondPassGroupingCollector.setNextReader(IndexReader reader,
int docBase) |
void |
TermFirstPassGroupingCollector.setNextReader(IndexReader reader,
int docBase) |
void |
TermAllGroupsCollector.setNextReader(IndexReader reader,
int docBase) |
void |
BlockGroupingCollector.setNextReader(IndexReader reader,
int docBase) |
void |
AbstractSecondPassGroupingCollector.setNextReader(IndexReader reader,
int docBase) |
void |
AbstractFirstPassGroupingCollector.setNextReader(IndexReader reader,
int docBase) |
Modifier and Type | Method and Description |
---|---|
protected IndexReader |
WeightedSpanTermExtractor.getReaderForField(String field) |
Modifier and Type | Method and Description |
---|---|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
String field,
Analyzer analyzer)
A convenience method that tries a number of approaches to getting a token
stream.
|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
String field,
Document doc,
Analyzer analyzer)
A convenience method that tries to first get a TermPositionVector for the
specified docId, then, falls back to using the passed in
Document to retrieve the TokenStream. |
static WeightedTerm[] |
QueryTermExtractor.getIdfWeightedTerms(Query query,
IndexReader reader,
String fieldName)
Extracts all terms texts of a given Query into an array of WeightedTerms
|
static TokenStream |
TokenSources.getTokenStream(IndexReader reader,
int docId,
String field) |
static TokenStream |
TokenSources.getTokenStream(IndexReader reader,
int docId,
String field,
Analyzer analyzer) |
Map<String,WeightedSpanTerm> |
WeightedSpanTermExtractor.getWeightedSpanTermsWithScores(Query query,
TokenStream tokenStream,
String fieldName,
IndexReader reader)
Creates a Map of
WeightedSpanTerms from the given Query and TokenStream . |
Constructor and Description |
---|
QueryScorer(Query query,
IndexReader reader,
String field) |
QueryScorer(Query query,
IndexReader reader,
String field,
String defaultField) |
QueryTermScorer(Query query,
IndexReader reader,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
DocIdSet |
RawTermFilter.getDocIdSet(IndexReader reader) |
Query |
ToParentBlockJoinQuery.rewrite(IndexReader reader) |
Query |
ToChildBlockJoinQuery.rewrite(IndexReader reader) |
void |
ToParentBlockJoinCollector.setNextReader(IndexReader reader,
int docBase) |
Modifier and Type | Method and Description |
---|---|
Explanation |
PayloadTermQuery.PayloadTermWeight.explain(IndexReader reader,
int doc) |
Scorer |
PayloadTermQuery.PayloadTermWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Scorer |
PayloadNearQuery.PayloadNearSpanWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Constructor and Description |
---|
PayloadSpanUtil(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermEnum |
RegexQuery.getEnum(IndexReader reader) |
Constructor and Description |
---|
RegexTermEnum(IndexReader reader,
Term term,
RegexCapabilities regexImpl) |
Modifier and Type | Method and Description |
---|---|
Query |
MoreLikeThisQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
MoreLikeThis(IndexReader ir)
Constructor requiring an IndexReader.
|
MoreLikeThis(IndexReader ir,
Similarity sim) |
Modifier and Type | Method and Description |
---|---|
Explanation |
SpanWeight.explain(IndexReader reader,
int doc) |
Spans |
SpanTermQuery.getSpans(IndexReader reader) |
abstract Spans |
SpanQuery.getSpans(IndexReader reader)
Expert: Returns the matches for this query in an index.
|
Spans |
SpanPositionCheckQuery.getSpans(IndexReader reader) |
Spans |
SpanOrQuery.getSpans(IndexReader reader) |
Spans |
SpanNotQuery.getSpans(IndexReader reader) |
Spans |
SpanNearQuery.getSpans(IndexReader reader) |
Spans |
SpanMultiTermQueryWrapper.getSpans(IndexReader reader) |
Spans |
FieldMaskingSpanQuery.getSpans(IndexReader reader) |
Query |
SpanPositionCheckQuery.rewrite(IndexReader reader) |
Query |
SpanOrQuery.rewrite(IndexReader reader) |
Query |
SpanNotQuery.rewrite(IndexReader reader) |
Query |
SpanNearQuery.rewrite(IndexReader reader) |
Query |
SpanMultiTermQueryWrapper.rewrite(IndexReader reader) |
Query |
FieldMaskingSpanQuery.rewrite(IndexReader reader) |
abstract SpanQuery |
SpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
SpanQuery |
SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Scorer |
SpanWeight.scorer(IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
Constructor and Description |
---|
NearSpansOrdered(SpanNearQuery spanNearQuery,
IndexReader reader) |
NearSpansOrdered(SpanNearQuery spanNearQuery,
IndexReader reader,
boolean collectPayloads) |
NearSpansUnordered(SpanNearQuery query,
IndexReader reader) |
SpanPositionCheckQuery.PositionCheckSpan(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
String[] |
SpellChecker.suggestSimilar(String word,
int numSug,
IndexReader ir,
String field,
boolean morePopular)
Deprecated.
use suggestSimilar(String, int, IndexReader, String, SuggestMode)
|
String[] |
SpellChecker.suggestSimilar(String word,
int numSug,
IndexReader ir,
String field,
boolean morePopular,
float accuracy)
Deprecated.
use suggestSimilar(String, int, IndexReader, String, SuggestMode, float)
|
String[] |
SpellChecker.suggestSimilar(String word,
int numSug,
IndexReader ir,
String field,
SuggestMode suggestMode)
|
String[] |
SpellChecker.suggestSimilar(String word,
int numSug,
IndexReader ir,
String field,
SuggestMode suggestMode,
float accuracy)
Suggest similar words (optionally restricted to a field of an index).
|
Constructor and Description |
---|
HighFrequencyDictionary(IndexReader reader,
String field,
float thresh) |
LuceneDictionary(IndexReader reader,
String field) |
Modifier and Type | Method and Description |
---|---|
String |
FragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList)
create a fragment.
|
String |
BaseFragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList) |
String |
FragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
String[] preTags,
String[] postTags,
Encoder encoder)
create a fragment.
|
String |
BaseFragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
String[] preTags,
String[] postTags,
Encoder encoder) |
String[] |
FragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments)
create multiple fragments.
|
String[] |
BaseFragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments) |
String[] |
FragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
String[] preTags,
String[] postTags,
Encoder encoder)
create multiple fragments.
|
String[] |
BaseFragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
String[] preTags,
String[] postTags,
Encoder encoder) |
String |
FastVectorHighlighter.getBestFragment(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String fieldName,
int fragCharSize)
return the best fragment.
|
String |
FastVectorHighlighter.getBestFragment(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String fieldName,
int fragCharSize,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
String[] preTags,
String[] postTags,
Encoder encoder)
return the best fragment.
|
String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String fieldName,
int fragCharSize,
int maxNumFragments)
return the best fragments.
|
String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String fieldName,
int fragCharSize,
int maxNumFragments,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
String[] preTags,
String[] postTags,
Encoder encoder)
return the best fragments.
|
FieldQuery |
FastVectorHighlighter.getFieldQuery(Query query,
IndexReader reader)
create a
FieldQuery object. |
protected Field[] |
BaseFragmentsBuilder.getFields(IndexReader reader,
int docId,
String fieldName) |
protected String[] |
BaseFragmentsBuilder.getFieldValues(IndexReader reader,
int docId,
String fieldName)
Deprecated.
|
Constructor and Description |
---|
FieldTermStack(IndexReader reader,
int docId,
String fieldName,
FieldQuery fieldQuery)
a constructor.
|
Modifier and Type | Method and Description |
---|---|
DocIdSet |
GeoHashDistanceFilter.getDocIdSet(IndexReader reader)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DocIdSet |
LatLongDistanceFilter.getDocIdSet(IndexReader reader)
Deprecated.
|
DocIdSet |
CartesianShapeFilter.getDocIdSet(IndexReader reader)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
InstantiatedIndexReader
Deprecated.
contrib/instantiated will be removed in 4.0;
you can use the memory codec to hold all postings in RAM
|
Modifier and Type | Method and Description |
---|---|
void |
InstantiatedIndexWriter.addIndexes(IndexReader[] readers)
Deprecated.
|
Constructor and Description |
---|
InstantiatedIndex(IndexReader sourceIndexReader)
Deprecated.
Creates a new instantiated index that looks just like the index in a specific state as represented by a reader.
|
InstantiatedIndex(IndexReader sourceIndexReader,
Set<String> fields)
Deprecated.
Creates a new instantiated index that looks just like the index in a specific state as represented by a reader.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
ReaderUtil.Gather.add(int base,
IndexReader r) |
static void |
ReaderUtil.gatherSubReaders(List<IndexReader> allSubReaders,
IndexReader reader)
Gathers sub-readers from reader into a List.
|
static Collection<String> |
ReaderUtil.getIndexedFields(IndexReader reader) |
static FieldInfos |
ReaderUtil.getMergedFieldInfos(IndexReader reader)
Call this to get the (merged) FieldInfos for a
composite reader
|
static IndexSearcher |
LuceneTestCase.newSearcher(IndexReader r)
create a new searcher over the reader.
|
static IndexSearcher |
LuceneTestCase.newSearcher(IndexReader r,
boolean maybeWrap)
create a new searcher over the reader.
|
Modifier and Type | Method and Description |
---|---|
static void |
ReaderUtil.gatherSubReaders(List<IndexReader> allSubReaders,
IndexReader reader)
Gathers sub-readers from reader into a List.
|
Constructor and Description |
---|
ReaderUtil.Gather(IndexReader r) |