Package | Description |
---|---|
org.apache.lucene.analysis.query |
Automatically filter high-frequency stopwords.
|
org.apache.lucene.bkdtree |
This package contains a BKD spatial tree implementation for indexing lat/lon points and fast shape searching.
|
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.function.docvalues |
FunctionValues for different data types.
|
org.apache.lucene.queries.mlt |
Document similarity query generators.
|
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.vectorhighlight |
Another highlighter implementation based on term vectors.
|
org.apache.lucene.uninverting |
Support for creating docvalues on-the-fly from the inverted index at runtime.
|
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,
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(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(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 |
---|---|
Query |
BKDPointInBBoxQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
LazyDocument(IndexReader reader,
int docID) |
Modifier and Type | Method and Description |
---|---|
Query |
DrillDownQuery.rewrite(IndexReader r) |
Modifier and Type | Field and Description |
---|---|
IndexReader |
DefaultSortedSetDocValuesReaderState.origReader
IndexReader passed to the constructor. |
Modifier and Type | Method and Description |
---|---|
abstract IndexReader |
SortedSetDocValuesReaderState.getOrigReader()
Returns top-level index reader.
|
IndexReader |
DefaultSortedSetDocValuesReaderState.getOrigReader() |
Constructor and Description |
---|
DefaultSortedSetDocValuesReaderState(IndexReader reader)
Creates this, pulling doc values from the default
FacetsConfig.DEFAULT_INDEX_FIELD_NAME . |
DefaultSortedSetDocValuesReaderState(IndexReader reader,
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. |
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 |
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 |
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 |
MultiReader
A
CompositeReader which reads multiple indexes, appending
their content. |
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 |
SlowCompositeReaderWrapper
|
class |
SortingLeafReader
An
LeafReader which supports sorting documents by a given
Sort . |
Modifier and Type | Method and Description |
---|---|
abstract IndexReader |
IndexReaderContext.reader()
Returns the
IndexReader , this context represents. |
Modifier and Type | Method and Description |
---|---|
protected abstract 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 static void |
LeafReader.addCoreClosedListenerAsReaderClosedListener(IndexReader reader,
LeafReader.CoreClosedListener listener)
|
static BinaryDocValues |
MultiDocValues.getBinaryValues(IndexReader r,
String field)
Returns a BinaryDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static Bits |
MultiDocValues.getDocsWithField(IndexReader r,
String field)
Returns a Bits for a reader's docsWithField (potentially merging on-the-fly)
|
static Fields |
MultiFields.getFields(IndexReader reader)
Returns a single
Fields instance for this
reader, merging fields/terms/docs/positions on the
fly. |
static Collection<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 FieldInfos |
MultiFields.getMergedFieldInfos(IndexReader reader)
Call this to get the (merged) FieldInfos for a
composite reader.
|
static NumericDocValues |
MultiDocValues.getNormValues(IndexReader r,
String field)
Returns a NumericDocValues for a reader's norms (potentially merging on-the-fly).
|
static NumericDocValues |
MultiDocValues.getNumericValues(IndexReader r,
String field)
Returns a NumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedNumericDocValues |
MultiDocValues.getSortedNumericValues(IndexReader r,
String field)
Returns a SortedNumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedSetDocValues |
MultiDocValues.getSortedSetValues(IndexReader r,
String field)
Returns a SortedSetDocValues for a reader's docvalues (potentially doing extremely slow things).
|
static SortedDocValues |
MultiDocValues.getSortedValues(IndexReader r,
String field)
Returns a SortedDocValues for a reader's docvalues (potentially doing extremely slow things).
|
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
String field,
BytesRef term)
Returns
PostingsEnum for the specified field and
term. |
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
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,
String field,
BytesRef term)
Returns
PostingsEnum for the specified
field and term. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
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,
String field)
This method may return null if the field does not exist.
|
void |
IndexReader.ReaderClosedListener.onClose(IndexReader reader)
Invoked when the
IndexReader is closed. |
void |
IndexReader.registerParentReader(IndexReader reader)
Expert: This method is called by
IndexReader s which wrap other readers
(e.g. |
protected static void |
LeafReader.removeCoreClosedListenerAsReaderClosedListener(IndexReader reader,
LeafReader.CoreClosedListener listener)
Remove a
LeafReader.CoreClosedListener which has been added with
LeafReader.addCoreClosedListenerAsReaderClosedListener(IndexReader, CoreClosedListener) . |
void |
MultiPassIndexSplitter.split(IndexReader in,
Directory[] outputs,
boolean seq)
Split source index into multiple parts.
|
long |
TrackingIndexWriter.tryDeleteDocument(IndexReader reader,
int docID)
Cals
IndexWriter.tryDeleteDocument(IndexReader,int) and
returns the generation that reflects this change. |
boolean |
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,boolean) ). |
static LeafReader |
SlowCompositeReaderWrapper.wrap(IndexReader reader)
This method is sugar for getting an
LeafReader from
an IndexReader of any kind. |
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.
|
Modifier and Type | Method and Description |
---|---|
static TermStats[] |
HighFreqTerms.getHighFreqTerms(IndexReader reader,
int numTerms,
String field,
Comparator<TermStats> comparator)
Returns TermStats[] ordered by the specified comparator
|
Modifier and Type | Method and Description |
---|---|
void |
CommonTermsQuery.collectTermContext(IndexReader reader,
List<LeafReaderContext> leaves,
TermContext[] contextArray,
Term[] queryTerms) |
Query |
TermsQuery.rewrite(IndexReader reader) |
Query |
CommonTermsQuery.rewrite(IndexReader reader) |
Query |
CustomScoreQuery.rewrite(IndexReader reader) |
Query |
BoostingQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
ValueSourceScorer |
FunctionValues.getRangeScorer(IndexReader reader,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper)
Yields a
Scorer that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int) . |
ValueSourceScorer |
FunctionValues.getScorer(IndexReader reader)
Yields a
Scorer that matches all documents,
and that which produces scores equal to FunctionValues.floatVal(int) . |
Query |
BoostedQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
ValueSourceScorer(IndexReader reader,
FunctionValues values) |
Modifier and Type | Method and Description |
---|---|
ValueSourceScorer |
DocTermsIndexDocValues.getRangeScorer(IndexReader reader,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper) |
ValueSourceScorer |
LongDocValues.getRangeScorer(IndexReader reader,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper) |
ValueSourceScorer |
DoubleDocValues.getRangeScorer(IndexReader reader,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper) |
ValueSourceScorer |
IntDocValues.getRangeScorer(IndexReader reader,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper) |
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 |
---|---|
IndexReader |
SpanNearClauseFactory.getIndexReader() |
Modifier and Type | Method and Description |
---|---|
Query |
DistanceQuery.getSpanNearQuery(IndexReader reader,
String fieldName,
BasicQueryFactory qf) |
void |
SrndTermQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
abstract void |
SimpleTerm.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndTruncQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndPrefixQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
Constructor and Description |
---|
SpanNearClauseFactory(IndexReader reader,
String fieldName,
BasicQueryFactory qf) |
Modifier and Type | Method and Description |
---|---|
Query |
FuzzyLikeThisQuery.rewrite(IndexReader 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 |
DocValuesRangeQuery.rewrite(IndexReader reader) |
Query |
GeoPointDistanceQuery.rewrite(IndexReader reader) |
Query |
GeoPointInBBoxQuery.rewrite(IndexReader reader) |
Query |
GeoPointDistanceRangeQuery.rewrite(IndexReader reader) |
Query |
NGramPhraseQuery.rewrite(IndexReader reader) |
Query |
MatchNoDocsQuery.rewrite(IndexReader reader) |
Query |
BlendedTermQuery.rewrite(IndexReader reader) |
Query |
PhraseQuery.rewrite(IndexReader reader) |
Query |
MultiTermQuery.rewrite(IndexReader reader)
To rewrite to a simpler form, instead return a simpler
enum from
MultiTermQuery.getTermsEnum(Terms, AttributeSource) . |
Query |
BooleanQuery.rewrite(IndexReader reader) |
Query |
MultiPhraseQuery.rewrite(IndexReader reader) |
Query |
FilteredQuery.rewrite(IndexReader reader)
Deprecated.
|
Query |
BoostQuery.rewrite(IndexReader reader) |
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
QueryWrapperFilter.rewrite(IndexReader reader)
Deprecated.
|
Query |
ConstantScoreQuery.rewrite(IndexReader reader) |
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations
|
Query |
Filter.rewrite(IndexReader reader)
Deprecated.
|
Query |
CachingWrapperQuery.rewrite(IndexReader reader)
Deprecated.
|
abstract Query |
MultiTermQuery.RewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
ScoringRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
DocValuesRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
DocTermOrdsRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query)
Deprecated.
|
Query |
TopTermsRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Constructor and Description |
---|
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.
|
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,
String field,
Analyzer analyzer)
Deprecated.
|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
String field,
Document document,
Analyzer analyzer)
Deprecated.
|
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,
Analyzer analyzer)
Deprecated.
|
static TokenStream |
TokenSources.getTokenStreamWithOffsets(IndexReader reader,
int docId,
String field)
Deprecated.
|
Map<String,WeightedSpanTerm> |
WeightedSpanTermExtractor.getWeightedSpanTermsWithScores(Query query,
float boost,
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 |
---|---|
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) |
Constructor and Description |
---|
ToParentBlockJoinIndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
ToParentBlockJoinIndexSearcher(IndexReader r,
ExecutorService executor)
Creates a searcher searching the provided index.
|
Modifier and Type | Method and Description |
---|---|
Query |
SpanNearQuery.rewrite(IndexReader reader) |
Query |
SpanOrQuery.rewrite(IndexReader reader) |
Query |
SpanPositionCheckQuery.rewrite(IndexReader reader) |
Query |
SpanNotQuery.rewrite(IndexReader reader) |
Query |
SpanQuery.rewrite(IndexReader reader) |
Query |
FieldMaskingSpanQuery.rewrite(IndexReader reader) |
Query |
SpanMultiTermQueryWrapper.rewrite(IndexReader reader) |
Query |
SpanBoostQuery.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 |
---|---|
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).
|
SuggestWord[] |
DirectSpellChecker.suggestSimilar(Term term,
int numSug,
IndexReader ir)
|
protected 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,
String field,
float thresh)
Creates a new Dictionary, pulling source terms from
the specified
field in the provided reader . |
LuceneDictionary(IndexReader reader,
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,
String field,
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,
String field,
String weightField,
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,
String field,
String weightField,
String payloadField,
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,
String field,
ValueSource 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,
String field,
ValueSource weightsValueSource,
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,
String field,
ValueSource weightsValueSource,
String payload,
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 | Method and Description |
---|---|
String |
BaseFragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList) |
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[] preTags,
String[] postTags,
Encoder encoder) |
String |
FragmentsBuilder.createFragment(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
String[] preTags,
String[] postTags,
Encoder encoder)
create a fragment.
|
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)
create multiple fragments.
|
String[] |
BaseFragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
String[] preTags,
String[] postTags,
Encoder encoder) |
String[] |
FragmentsBuilder.createFragments(IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
String[] preTags,
String[] postTags,
Encoder encoder)
create multiple fragments.
|
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.
|
String[] |
FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery,
IndexReader reader,
int docId,
String storedField,
Set<String> matchedFields,
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) |
Constructor and Description |
---|
FieldTermStack(IndexReader reader,
int docId,
String fieldName,
FieldQuery fieldQuery)
a constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
UninvertingReader
A FilterReader that exposes indexed values as if they also had
docvalues.
|
Copyright © 2000-2018 The Apache Software Foundation. All Rights Reserved.