Package | Description |
---|---|
org.apache.lucene.analysis.query |
Automatically filter high-frequency stopwords.
|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
org.apache.lucene.classification |
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).
|
org.apache.lucene.classification.document |
Uses already seen data (the indexed documents) to classify new documents.
|
org.apache.lucene.classification.utils |
Utilities for evaluation, data preparation, etc.
|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.facet |
Faceted search.
|
org.apache.lucene.facet.sortedset |
Provides faceting capabilities over facets that were indexed
with
SortedSetDocValuesFacetField . |
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.queries.mlt |
Document similarity query generators.
|
org.apache.lucene.queries.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.queryparser.surround.query |
This package contains SrndQuery and its subclasses.
|
org.apache.lucene.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.search.vectorhighlight |
Another highlighter implementation based on term vectors.
|
org.apache.lucene.spatial.composite |
Composite strategies.
|
org.apache.lucene.util |
Some utility classes.
|
Constructor and Description |
---|
QueryAutoStopWordAnalyzer(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(Analyzer delegate,
IndexReader indexReader,
java.util.Collection<java.lang.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(Analyzer delegate,
IndexReader indexReader,
java.util.Collection<java.lang.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(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(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 |
---|---|
protected Document |
ReadTask.retrieveDoc(IndexReader ir,
int id) |
protected Document |
SearchTravRetLoadFieldSelectorTask.retrieveDoc(IndexReader ir,
int id) |
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
SimpleNaiveBayesClassifier.indexReader
IndexReader used to access the Classifier 's
index |
Constructor and Description |
---|
BM25NBClassifier(IndexReader indexReader,
Analyzer analyzer,
Query query,
java.lang.String classFieldName,
java.lang.String... textFieldNames)
Creates a new NaiveBayes classifier.
|
BooleanPerceptronClassifier(IndexReader indexReader,
Analyzer analyzer,
Query query,
java.lang.Integer batchSize,
java.lang.Double bias,
java.lang.String classFieldName,
java.lang.String textFieldName)
Creates a
BooleanPerceptronClassifier |
CachingNaiveBayesClassifier(IndexReader indexReader,
Analyzer analyzer,
Query query,
java.lang.String classFieldName,
java.lang.String... textFieldNames)
Creates a new NaiveBayes classifier with inside caching.
|
KNearestFuzzyClassifier(IndexReader indexReader,
Similarity similarity,
Analyzer analyzer,
Query query,
int k,
java.lang.String classFieldName,
java.lang.String... textFieldNames)
Creates a
KNearestFuzzyClassifier . |
KNearestNeighborClassifier(IndexReader indexReader,
Similarity similarity,
Analyzer analyzer,
Query query,
int k,
int minDocsFreq,
int minTermFreq,
java.lang.String classFieldName,
java.lang.String... textFieldNames)
Creates a
KNearestNeighborClassifier . |
SimpleNaiveBayesClassifier(IndexReader indexReader,
Analyzer analyzer,
Query query,
java.lang.String classFieldName,
java.lang.String... textFieldNames)
Creates a new NaiveBayes classifier.
|
Constructor and Description |
---|
KNearestNeighborDocumentClassifier(IndexReader indexReader,
Similarity similarity,
Query query,
int k,
int minDocsFreq,
int minTermFreq,
java.lang.String classFieldName,
java.util.Map<java.lang.String,Analyzer> field2analyzer,
java.lang.String... textFieldNames)
Creates a
KNearestNeighborClassifier . |
SimpleNaiveBayesDocumentClassifier(IndexReader indexReader,
Query query,
java.lang.String classFieldName,
java.util.Map<java.lang.String,Analyzer> field2analyzer,
java.lang.String... textFieldNames)
Creates a new NaiveBayes classifier.
|
Modifier and Type | Method and Description |
---|---|
static <T> ConfusionMatrixGenerator.ConfusionMatrix |
ConfusionMatrixGenerator.getConfusionMatrix(IndexReader reader,
Classifier<T> classifier,
java.lang.String classFieldName,
java.lang.String textFieldName,
long timeoutMilliseconds)
get the
ConfusionMatrixGenerator.ConfusionMatrix of a given Classifier ,
generated on the given IndexReader , class and text fields. |
Query |
NearestFuzzyQuery.rewrite(IndexReader reader) |
void |
DatasetSplitter.split(IndexReader originalIndex,
Directory trainingIndex,
Directory testIndex,
Directory crossValidationIndex,
Analyzer analyzer,
boolean termVectors,
java.lang.String classFieldName,
java.lang.String... fieldNames)
Split a given index into 3 indexes for training, test and cross validation tasks respectively
|
Constructor and Description |
---|
LazyDocument(IndexReader reader,
int docID) |
Modifier and Type | Method and Description |
---|---|
Query |
DrillDownQuery.rewrite(IndexReader r) |
Constructor and Description |
---|
LongValueFacetCounts(java.lang.String field,
IndexReader reader,
boolean multiValued)
Counts all facet values for this reader.
|
LongValueFacetCounts(java.lang.String field,
LongValuesSource valueSource,
IndexReader reader)
Counts all facet values for the provided
LongValuesSource . |
Modifier and Type | Field and Description |
---|---|
IndexReader |
DefaultSortedSetDocValuesReaderState.reader
IndexReader passed to the constructor. |
Modifier and Type | Method and Description |
---|---|
IndexReader |
DefaultSortedSetDocValuesReaderState.getReader() |
abstract IndexReader |
SortedSetDocValuesReaderState.getReader()
Returns top-level index reader.
|
Constructor and Description |
---|
DefaultSortedSetDocValuesReaderState(IndexReader reader)
Creates this, pulling doc values from the default
FacetsConfig.DEFAULT_INDEX_FIELD_NAME . |
DefaultSortedSetDocValuesReaderState(IndexReader reader,
java.lang.String field)
Creates this, pulling doc values from the specified
field.
|
Modifier and Type | Class and Description |
---|---|
class |
OrdinalMappingLeafReader
A
FilterLeafReader for updating facets ordinal references,
based on an ordinal map. |
Constructor and Description |
---|
FastTaxonomyFacetCounts(java.lang.String indexFieldName,
IndexReader reader,
TaxonomyReader taxoReader,
FacetsConfig config)
Create
FastTaxonomyFacetCounts , using the
specified indexFieldName for ordinals, and
counting all non-deleted documents in the index. |
SearcherTaxonomyManager(IndexReader reader,
DirectoryTaxonomyReader taxoReader,
SearcherFactory searcherFactory)
Creates this from already opened
IndexReader and DirectoryTaxonomyReader instances. |
Modifier and Type | Class and Description |
---|---|
class |
BaseCompositeReader<R extends IndexReader>
Base class for implementing
CompositeReader s based on an array
of sub-readers. |
Modifier and Type | Class and Description |
---|---|
class |
AllDeletedFilterReader
Filters the incoming reader and makes all documents appear deleted.
|
class |
AssertingDirectoryReader
A
DirectoryReader that wraps all its subreaders with
AssertingLeafReader |
class |
AssertingLeafReader
A
FilterLeafReader that can be used to apply
additional checks for tests. |
class |
BaseCompositeReader<R extends IndexReader>
Base class for implementing
CompositeReader s based on an array
of sub-readers. |
class |
CodecReader
LeafReader implemented by codec APIs.
|
class |
CompositeReader
Instances of this reader type can only
be used to get stored fields from the underlying LeafReaders,
but it is not possible to directly retrieve postings.
|
class |
DirectoryReader
DirectoryReader is an implementation of
CompositeReader
that can read indexes in a Directory . |
class |
ExitableDirectoryReader
The
ExitableDirectoryReader wraps a real index DirectoryReader and
allows for a QueryTimeout implementation object to be checked periodically
to see if the thread should exit or not. |
static class |
ExitableDirectoryReader.ExitableFilterAtomicReader
Wrapper class for another FilterAtomicReader.
|
class |
FieldFilterLeafReader
A
FilterLeafReader that exposes only a subset
of fields from the underlying wrapped reader. |
class |
FilterCodecReader
A
FilterCodecReader contains another CodecReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
FilterDirectoryReader
A FilterDirectoryReader wraps another DirectoryReader, allowing implementations
to transform or extend it.
|
class |
FilterLeafReader
A
FilterLeafReader contains another LeafReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
LeafReader
LeafReader is an abstract class, providing an interface for accessing an
index. |
class |
MismatchedDirectoryReader
A
DirectoryReader that wraps all its subreaders with
MismatchedLeafReader |
class |
MismatchedLeafReader
Shuffles field numbers around to try to trip bugs where field numbers
are assumed to always be consistent across segments.
|
class |
MultiReader
A
CompositeReader which reads multiple indexes, appending
their content. |
class |
OwnCacheKeyMultiReader
A
MultiReader that has its own cache key, occasionally useful for
testing purposes. |
class |
ParallelCompositeReader
An
CompositeReader which reads multiple, parallel indexes. |
class |
ParallelLeafReader
An
LeafReader which reads multiple, parallel indexes. |
class |
SegmentReader
IndexReader implementation over a single segment.
|
class |
SoftDeletesDirectoryReaderWrapper
This reader filters out documents that have a doc values value in the given field and treat these
documents as soft deleted.
|
class |
StandardDirectoryReader
Default implementation of
DirectoryReader . |
Modifier and Type | Method and Description |
---|---|
abstract IndexReader |
IndexReaderContext.reader()
Returns the
IndexReader , this context represents. |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<? extends IndexReader> |
CompositeReader.getSequentialSubReaders()
Expert: returns the sequential sub readers that this
reader is logically composed of.
|
Modifier and Type | Method and Description |
---|---|
protected int |
BaseTermVectorsFormatTestCase.docID(IndexReader reader,
java.lang.String id) |
static BinaryDocValues |
MultiDocValues.getBinaryValues(IndexReader r,
java.lang.String field)
Returns a BinaryDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static int |
PointValues.getDocCount(IndexReader reader,
java.lang.String field)
Return the cumulated number of docs that have points across all leaves
of the given
IndexReader . |
static Fields |
MultiFields.getFields(IndexReader reader)
Returns a single
Fields instance for this
reader, merging fields/terms/docs/positions on the
fly. |
static java.util.Collection<java.lang.String> |
MultiFields.getIndexedFields(IndexReader reader)
Call this to get the (merged) FieldInfos representing the
set of indexed fields only for a composite reader.
|
static Bits |
MultiFields.getLiveDocs(IndexReader reader)
Returns a single
Bits instance for this
reader, merging live Documents on the
fly. |
static byte[] |
PointValues.getMaxPackedValue(IndexReader reader,
java.lang.String field)
Return the maximum packed values across all leaves of the given
IndexReader . |
static FieldInfos |
MultiFields.getMergedFieldInfos(IndexReader reader)
Call this to get the (merged) FieldInfos for a
composite reader.
|
static byte[] |
PointValues.getMinPackedValue(IndexReader reader,
java.lang.String field)
Return the minimum packed values across all leaves of the given
IndexReader . |
static NumericDocValues |
MultiDocValues.getNormValues(IndexReader r,
java.lang.String field)
Returns a NumericDocValues for a reader's norms (potentially merging on-the-fly).
|
static NumericDocValues |
MultiDocValues.getNumericValues(IndexReader r,
java.lang.String field)
Returns a NumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedNumericDocValues |
MultiDocValues.getSortedNumericValues(IndexReader r,
java.lang.String field)
Returns a SortedNumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedSetDocValues |
MultiDocValues.getSortedSetValues(IndexReader r,
java.lang.String field)
Returns a SortedSetDocValues for a reader's docvalues (potentially doing extremely slow things).
|
static SortedDocValues |
MultiDocValues.getSortedValues(IndexReader r,
java.lang.String field)
Returns a SortedDocValues for a reader's docvalues (potentially doing extremely slow things).
|
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified field and
term. |
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified field and
term, with control over whether freqs are required. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified
field and term. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified
field and term, with control over whether offsets and payloads are
required. |
static Terms |
MultiFields.getTerms(IndexReader r,
java.lang.String field)
This method may return null if the field does not exist or if it has no terms.
|
void |
IndexReader.registerParentReader(IndexReader reader)
Expert: This method is called by
IndexReader s which wrap other readers
(e.g. |
static long |
PointValues.size(IndexReader reader,
java.lang.String field)
Return the cumulated number of points across all leaves of the given
IndexReader . |
void |
MultiPassIndexSplitter.split(IndexReader in,
Directory[] outputs,
boolean seq)
Split source index into multiple parts.
|
long |
IndexWriter.tryDeleteDocument(IndexReader readerIn,
int docID)
Expert: attempts to delete by document ID, as long as
the provided reader is a near-real-time reader (from
DirectoryReader.open(IndexWriter) ). |
long |
IndexWriter.tryUpdateDocValue(IndexReader readerIn,
int docID,
Field... fields)
Expert: attempts to update doc values by document ID, as long as
the provided reader is a near-real-time reader (from
DirectoryReader.open(IndexWriter) ). |
Constructor and Description |
---|
BaseCompositeReader(R[] subReaders)
Constructs a
BaseCompositeReader on the given subReaders. |
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.
|
OwnCacheKeyMultiReader(IndexReader... subReaders)
Sole constructor.
|
PerThreadPKLookup(IndexReader r,
java.lang.String idFieldName) |
Modifier and Type | Method and Description |
---|---|
static TermStats[] |
HighFreqTerms.getHighFreqTerms(IndexReader reader,
int numTerms,
java.lang.String field,
java.util.Comparator<TermStats> comparator)
Returns TermStats[] ordered by the specified comparator
|
Modifier and Type | Method and Description |
---|---|
void |
CommonTermsQuery.collectTermContext(IndexReader reader,
java.util.List<LeafReaderContext> leaves,
TermContext[] contextArray,
Term[] queryTerms) |
Query |
CommonTermsQuery.rewrite(IndexReader reader) |
Query |
CustomScoreQuery.rewrite(IndexReader reader)
Deprecated.
|
Query |
BoostingQuery.rewrite(IndexReader reader)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Query |
BoostedQuery.rewrite(IndexReader reader)
Deprecated.
|
Query |
FunctionScoreQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
Query |
MoreLikeThisQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
MoreLikeThis(IndexReader ir)
Constructor requiring an IndexReader.
|
MoreLikeThis(IndexReader ir,
TFIDFSimilarity sim) |
Modifier and Type | Method and Description |
---|---|
Query |
SpanPayloadCheckQuery.rewrite(IndexReader reader) |
Query |
PayloadScoreQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
IndexReader |
SpanNearClauseFactory.getIndexReader() |
Modifier and Type | Method and Description |
---|---|
Query |
DistanceQuery.getSpanNearQuery(IndexReader reader,
java.lang.String fieldName,
BasicQueryFactory qf) |
void |
SrndTruncQuery.visitMatchingTerms(IndexReader reader,
java.lang.String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndPrefixQuery.visitMatchingTerms(IndexReader reader,
java.lang.String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
abstract void |
SimpleTerm.visitMatchingTerms(IndexReader reader,
java.lang.String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndTermQuery.visitMatchingTerms(IndexReader reader,
java.lang.String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
Constructor and Description |
---|
SpanNearClauseFactory(IndexReader reader,
java.lang.String fieldName,
BasicQueryFactory qf) |
Modifier and Type | Method and Description |
---|---|
Query |
FuzzyLikeThisQuery.rewrite(IndexReader reader) |
Modifier and Type | Field and Description |
---|---|
protected static IndexReader |
SearchEquivalenceTestBase.reader |
protected static IndexReader |
BaseExplanationTestCase.reader |
Modifier and Type | Method and Description |
---|---|
IndexReader |
IndexSearcher.getIndexReader()
Return the
IndexReader this searches. |
Modifier and Type | Method and Description |
---|---|
static IndexSearcher |
SearcherManager.getSearcher(SearcherFactory searcherFactory,
IndexReader reader,
IndexReader previousReader)
Expert: creates a searcher from the provided
IndexReader using the provided SearcherFactory . |
IndexSearcher |
SearcherFactory.newSearcher(IndexReader reader,
IndexReader previousReader)
Returns a new IndexSearcher over the given reader.
|
Query |
CoveringQuery.rewrite(IndexReader reader) |
Query |
TermAutomatonQuery.rewrite(IndexReader reader) |
Query |
RandomApproximationQuery.rewrite(IndexReader reader) |
Query |
AssertingQuery.rewrite(IndexReader reader) |
Query |
SynonymQuery.rewrite(IndexReader reader) |
Query |
MultiPhraseQuery.rewrite(IndexReader reader) |
Query |
BoostQuery.rewrite(IndexReader reader) |
Query |
NGramPhraseQuery.rewrite(IndexReader reader) |
Query |
BooleanQuery.rewrite(IndexReader reader) |
Query |
TermInSetQuery.rewrite(IndexReader reader) |
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
IndexOrDocValuesQuery.rewrite(IndexReader reader) |
Query |
BlendedTermQuery.rewrite(IndexReader reader) |
Query |
PhraseQuery.rewrite(IndexReader reader) |
Query |
ConstantScoreQuery.rewrite(IndexReader reader) |
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations
|
Query |
MultiTermQuery.rewrite(IndexReader reader)
To rewrite to a simpler form, instead return a simpler
enum from
MultiTermQuery.getTermsEnum(Terms, AttributeSource) . |
Query |
TopTermsRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
DocValuesRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
ScoringRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
abstract Query |
MultiTermQuery.RewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Constructor and Description |
---|
AssertingIndexSearcher(java.util.Random random,
IndexReader r) |
AssertingIndexSearcher(java.util.Random random,
IndexReader r,
java.util.concurrent.ExecutorService ex) |
ExplanationAssertingSearcher(IndexReader r) |
IndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
IndexSearcher(IndexReader r,
java.util.concurrent.ExecutorService executor)
Runs searches for each segment separately, using the
provided ExecutorService.
|
ScorerIndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
ScorerIndexSearcher(IndexReader r,
java.util.concurrent.ExecutorService executor)
Creates a searcher searching the provided index.
|
ShardIndexSearcher(long[] nodeVersions,
IndexReader localReader,
int nodeID) |
Modifier and Type | Class and Description |
---|---|
class |
TermVectorLeafReader
Wraps a Terms with a
LeafReader , typically from term vectors. |
Modifier and Type | Method and Description |
---|---|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
java.lang.String field,
Analyzer analyzer)
Deprecated.
|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
java.lang.String field,
Document document,
Analyzer analyzer)
Deprecated.
|
static WeightedTerm[] |
QueryTermExtractor.getIdfWeightedTerms(Query query,
IndexReader reader,
java.lang.String fieldName)
Extracts all terms texts of a given Query into an array of WeightedTerms
|
static TokenStream |
TokenSources.getTokenStream(IndexReader reader,
int docId,
java.lang.String field,
Analyzer analyzer)
Deprecated.
|
static TokenStream |
TokenSources.getTokenStreamWithOffsets(IndexReader reader,
int docId,
java.lang.String field)
Deprecated.
|
java.util.Map<java.lang.String,WeightedSpanTerm> |
WeightedSpanTermExtractor.getWeightedSpanTermsWithScores(Query query,
float boost,
TokenStream tokenStream,
java.lang.String fieldName,
IndexReader reader)
Creates a Map of
WeightedSpanTerms from the given Query and TokenStream . |
Constructor and Description |
---|
QueryScorer(Query query,
IndexReader reader,
java.lang.String field) |
QueryScorer(Query query,
IndexReader reader,
java.lang.String field,
java.lang.String defaultField) |
QueryTermScorer(Query query,
IndexReader reader,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
static void |
CheckJoinIndex.check(IndexReader reader,
BitSetProducer parentsFilter)
Check that the given index is good to use for block joins.
|
Query |
ToParentBlockJoinQuery.rewrite(IndexReader reader) |
Query |
ToChildBlockJoinQuery.rewrite(IndexReader reader) |
Query |
ParentChildrenBlockJoinQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
Query |
AssertingSpanQuery.rewrite(IndexReader reader) |
Query |
SpanPositionCheckQuery.rewrite(IndexReader reader) |
Query |
SpanMultiTermQueryWrapper.rewrite(IndexReader reader) |
Query |
SpanOrQuery.rewrite(IndexReader reader) |
Query |
SpanNearQuery.rewrite(IndexReader reader) |
Query |
SpanBoostQuery.rewrite(IndexReader reader) |
Query |
SpanNotQuery.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) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
SpellChecker.suggestSimilar(java.lang.String word,
int numSug,
IndexReader ir,
java.lang.String field,
SuggestMode suggestMode)
|
java.lang.String[] |
SpellChecker.suggestSimilar(java.lang.String word,
int numSug,
IndexReader ir,
java.lang.String field,
SuggestMode suggestMode,
float accuracy)
Suggest similar words (optionally restricted to a field of an index).
|
SuggestWord[] |
DirectSpellChecker.suggestSimilar(Term term,
int numSug,
IndexReader ir)
|
protected java.util.Collection<DirectSpellChecker.ScoreTerm> |
DirectSpellChecker.suggestSimilar(Term term,
int numSug,
IndexReader ir,
int docfreq,
int editDistance,
float accuracy,
CharsRefBuilder spare)
Provide spelling corrections based on several parameters.
|
SuggestWord[] |
DirectSpellChecker.suggestSimilar(Term term,
int numSug,
IndexReader ir,
SuggestMode suggestMode)
|
SuggestWord[] |
DirectSpellChecker.suggestSimilar(Term term,
int numSug,
IndexReader ir,
SuggestMode suggestMode,
float accuracy)
Suggest similar words.
|
SuggestWord[][] |
WordBreakSpellChecker.suggestWordBreaks(Term term,
int maxSuggestions,
IndexReader ir,
SuggestMode suggestMode,
WordBreakSpellChecker.BreakSuggestionSortMethod sortMethod)
Generate suggestions by breaking the passed-in term into multiple words.
|
CombineSuggestion[] |
WordBreakSpellChecker.suggestWordCombinations(Term[] terms,
int maxSuggestions,
IndexReader ir,
SuggestMode suggestMode)
Generate suggestions by combining one or more of the passed-in terms into
single words.
|
Constructor and Description |
---|
HighFrequencyDictionary(IndexReader reader,
java.lang.String field,
float thresh)
Creates a new Dictionary, pulling source terms from
the specified
field in the provided reader . |
LuceneDictionary(IndexReader reader,
java.lang.String field)
Creates a new Dictionary, pulling source terms from
the specified
field in the provided reader |
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
DocumentDictionary.reader
IndexReader to load documents from |
Constructor and Description |
---|
DocumentDictionary(IndexReader reader,
java.lang.String field,
java.lang.String weightField)
Creates a new dictionary with the contents of the fields named
field
for the terms and weightField for the weights that will be used for
the corresponding terms. |
DocumentDictionary(IndexReader reader,
java.lang.String field,
java.lang.String weightField,
java.lang.String payloadField)
Creates a new dictionary with the contents of the fields named
field
for the terms, weightField for the weights that will be used for the
the corresponding terms and payloadField for the corresponding payloads
for the entry. |
DocumentDictionary(IndexReader reader,
java.lang.String field,
java.lang.String weightField,
java.lang.String payloadField,
java.lang.String contextsField)
Creates a new dictionary with the contents of the fields named
field
for the terms, weightField for the weights that will be used for the
the corresponding terms, payloadField for the corresponding payloads
for the entry and contextsField for associated contexts. |
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource)
Creates a new dictionary with the contents of the fields named
field
for the terms and uses the weightsValueSource supplied to determine the
score. |
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource,
java.lang.String payload)
Creates a new dictionary with the contents of the fields named
field
for the terms, payloadField for the corresponding payloads
and uses the weightsValueSource supplied to determine the
score. |
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource,
java.lang.String payload,
java.lang.String contexts)
Creates a new dictionary with the contents of the fields named
field
for the terms, payload for the corresponding payloads, contexts
for the associated contexts and uses the weightsValueSource supplied
to determine the score. |
Modifier and Type | Method and Description |
---|---|
Query |
CompletionQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
SuggestIndexSearcher(IndexReader reader)
Creates a searcher with document suggest capabilities
for
reader . |
Modifier and Type | Class and Description |
---|---|
class |
OverlaySingleDocTermsLeafReader
Overlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is
consulted.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
BaseFragmentsBuilder.createFragment(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList) |
java.lang.String |
FragmentsBuilder.createFragment(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList)
create a fragment.
|
java.lang.String |
BaseFragmentsBuilder.createFragment(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList,
java.lang.String[] preTags,
java.lang.String[] postTags,
Encoder encoder) |
java.lang.String |
FragmentsBuilder.createFragment(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList,
java.lang.String[] preTags,
java.lang.String[] postTags,
Encoder encoder)
create a fragment.
|
java.lang.String[] |
BaseFragmentsBuilder.createFragments(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList,
int maxNumFragments) |
java.lang.String[] |
FragmentsBuilder.createFragments(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList,
int maxNumFragments)
create multiple fragments.
|
java.lang.String[] |
BaseFragmentsBuilder.createFragments(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
java.lang.String[] preTags,
java.lang.String[] postTags,
Encoder encoder) |
java.lang.String[] |
FragmentsBuilder.createFragments(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
java.lang.String[] preTags,
java.lang.String[] postTags,
Encoder encoder)
create multiple fragments.
|
java.lang.String |
FastVectorHighlighter.getBestFragment(FieldQuery fieldQuery,
IndexReader reader,
int docId,
java.lang.String fieldName,
int fragCharSize)
return the best fragment.
|
java.lang.String |
FastVectorHighlighter.getBestFragment(FieldQuery fieldQuery,
IndexReader reader,
int docId,
java.lang.String fieldName,
int fragCharSize,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
java.lang.String[] preTags,
java.lang.String[] postTags,
Encoder encoder)
return the best fragment.
|
java.lang.String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
java.lang.String fieldName,
int fragCharSize,
int maxNumFragments)
return the best fragments.
|
java.lang.String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
java.lang.String fieldName,
int fragCharSize,
int maxNumFragments,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
java.lang.String[] preTags,
java.lang.String[] postTags,
Encoder encoder)
return the best fragments.
|
java.lang.String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
java.lang.String storedField,
java.util.Set<java.lang.String> matchedFields,
int fragCharSize,
int maxNumFragments,
FragListBuilder fragListBuilder,
FragmentsBuilder fragmentsBuilder,
java.lang.String[] preTags,
java.lang.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,
java.lang.String fieldName) |
Constructor and Description |
---|
FieldTermStack(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldQuery fieldQuery)
a constructor.
|
Modifier and Type | Method and Description |
---|---|
Query |
CompositeVerifyQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
static IndexReader |
LuceneTestCase.maybeWrapReader(IndexReader r)
Sometimes wrap the IndexReader as slow, parallel or filter reader (or
combinations of that)
|
static IndexReader |
LuceneTestCase.wrapReader(IndexReader r) |
Modifier and Type | Method and Description |
---|---|
void |
LuceneTestCase.assertDeletedDocsEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader) |
void |
LuceneTestCase.assertDocsSkippingEquals(java.lang.String info,
IndexReader leftReader,
int docFreq,
PostingsEnum leftDocs,
PostingsEnum rightDocs,
boolean hasFreqs)
checks advancing docs
|
void |
LuceneTestCase.assertDocValuesEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader)
checks that docvalues across all fields are equivalent
|
void |
LuceneTestCase.assertFieldInfosEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader) |
void |
LuceneTestCase.assertFieldsEquals(java.lang.String info,
IndexReader leftReader,
Fields leftFields,
Fields rightFields,
boolean deep)
Fields api equivalency
|
void |
LuceneTestCase.assertNormsEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader)
checks that norms are the same across all fields
|
void |
LuceneTestCase.assertPointsEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader) |
void |
LuceneTestCase.assertPositionsSkippingEquals(java.lang.String info,
IndexReader leftReader,
int docFreq,
PostingsEnum leftDocs,
PostingsEnum rightDocs)
checks advancing docs + positions
|
void |
LuceneTestCase.assertReaderEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader) |
void |
LuceneTestCase.assertReaderStatisticsEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader)
checks that reader-level statistics are the same
|
void |
LuceneTestCase.assertStoredFieldsEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader)
checks that stored fields of all documents are the same
|
void |
LuceneTestCase.assertTermsEnumEquals(java.lang.String info,
IndexReader leftReader,
TermsEnum leftTermsEnum,
TermsEnum rightTermsEnum,
boolean deep)
checks the terms enum sequentially
if deep is false, it does a 'shallow' test that doesnt go down to the docsenums
|
void |
LuceneTestCase.assertTermsEquals(java.lang.String info,
IndexReader leftReader,
Terms leftTerms,
Terms rightTerms,
boolean deep)
Terms api equivalency
|
void |
LuceneTestCase.assertTermVectorsEquals(java.lang.String info,
IndexReader leftReader,
IndexReader rightReader)
checks that term vectors across all fields are equivalent
|
static void |
TestUtil.checkReader(IndexReader reader)
This runs the CheckIndex tool on the Reader.
|
static PostingsEnum |
TestUtil.docs(java.util.Random random,
IndexReader r,
java.lang.String field,
BytesRef term,
PostingsEnum reuse,
int flags) |
static LeafReader |
LuceneTestCase.getOnlyLeafReader(IndexReader reader)
Some tests expect the directory to contain a single segment, and want to
do tests on that segment's reader.
|
static IndexReader |
LuceneTestCase.maybeWrapReader(IndexReader r)
Sometimes wrap the IndexReader as slow, parallel or filter reader (or
combinations of that)
|
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.
|
static IndexSearcher |
LuceneTestCase.newSearcher(IndexReader r,
boolean maybeWrap,
boolean wrapWithAssertions)
Create a new searcher over the reader.
|
static IndexReader |
LuceneTestCase.wrapReader(IndexReader r) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.