Package | Description |
---|---|
org.apache.lucene.analysis.query |
Automatically filter high-frequency stopwords.
|
org.apache.lucene.document |
Misc extensions of the Document/Field API.
|
org.apache.lucene.facet |
faceted search
|
org.apache.lucene.facet.sortedset |
Provides faceting capabilities over facets that were indexed with
SortedSetDocValuesFacetField . |
org.apache.lucene.index |
Misc index tools and index support.
|
org.apache.lucene.index.sorter |
Provides index sorting capablities.
|
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 |
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.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.vectorhighlight |
This is an another highlighter implementation.
|
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
|
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 |
BaseCompositeReader<R extends IndexReader>
Base class for implementing
CompositeReader s based on an array
of sub-readers. |
Modifier and Type | Class and Description |
---|---|
class |
AtomicReader
AtomicReader is an abstract class, providing an interface for accessing an
index. |
class |
BaseCompositeReader<R extends IndexReader>
Base class for implementing
CompositeReader s based on an array
of sub-readers. |
class |
CompositeReader
Instances of this reader type can only
be used to get stored fields from the underlying AtomicReaders,
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 |
FilterAtomicReader
A
FilterAtomicReader contains another AtomicReader, 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 |
MultiReader
A
CompositeReader which reads multiple indexes, appending
their content. |
class |
ParallelAtomicReader
An
AtomicReader which reads multiple, parallel indexes. |
class |
ParallelCompositeReader
An
CompositeReader which reads multiple, parallel indexes. |
class |
SegmentReader
IndexReader implementation over a single segment.
|
class |
SlowCompositeReaderWrapper
This class forces a composite reader (eg a
MultiReader or DirectoryReader ) to emulate an
atomic reader. |
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 |
---|---|
void |
IndexWriter.addIndexes(IndexReader... readers)
Merges the provided indexes into this index.
|
long |
TrackingIndexWriter.addIndexes(IndexReader... readers)
Calls
IndexWriter.addIndexes(IndexReader...)
and returns the generation that reflects this change. |
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 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 DocsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term)
Returns
DocsEnum for the specified field &
term. |
static DocsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term,
int flags)
Returns
DocsEnum for the specified field &
term, with control over whether freqs are required. |
static DocsAndPositionsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term)
Returns
DocsAndPositionsEnum for the specified
field & term. |
static DocsAndPositionsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term,
int flags)
Returns
DocsAndPositionsEnum for the specified
field & 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. |
void |
MultiPassIndexSplitter.split(Version version,
IndexReader in,
Directory[] outputs,
boolean seq)
Split source index into multiple parts.
|
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) ). |
long |
TrackingIndexWriter.tryDeleteDocument(IndexReader reader,
int docID)
Cals
IndexWriter.tryDeleteDocument(IndexReader,int) and
returns the generation that reflects this change. |
static AtomicReader |
SlowCompositeReaderWrapper.wrap(IndexReader reader)
This method is sugar for getting an
AtomicReader 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 | Class and Description |
---|---|
class |
SortingAtomicReader
An
AtomicReader which supports sorting documents by a given
Sort . |
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<AtomicReaderContext> leaves,
TermContext[] contextArray,
Term[] queryTerms) |
Query |
BoostingQuery.rewrite(IndexReader reader) |
Query |
CommonTermsQuery.rewrite(IndexReader reader) |
Query |
CustomScoreQuery.rewrite(IndexReader reader) |
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
ValueSourceScorer.reader |
Modifier and Type | Method and Description |
---|---|
IndexReader |
ValueSourceScorer.getReader() |
Modifier and Type | Method and Description |
---|---|
ValueSourceScorer |
FunctionValues.getRangeScorer(IndexReader reader,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper) |
ValueSourceScorer |
FunctionValues.getScorer(IndexReader reader) |
Query |
FunctionQuery.rewrite(IndexReader reader) |
Query |
BoostedQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
ValueSourceScorer(IndexReader reader,
FunctionValues values) |
Modifier and Type | Method and Description |
---|---|
ValueSourceScorer |
IntDocValues.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 |
DocTermsIndexDocValues.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,
float boost,
BasicQueryFactory qf) |
void |
SrndPrefixQuery.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 |
SrndTermQuery.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)
Expert: creates a searcher from the provided
IndexReader using the provided SearcherFactory . |
IndexSearcher |
SearcherFactory.newSearcher(IndexReader reader)
Returns a new IndexSearcher over the given reader.
|
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations
|
Query |
MultiPhraseQuery.rewrite(IndexReader reader) |
Query |
ConstantScoreQuery.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.getTermsEnum(Terms, AttributeSource) . |
Query |
BooleanQuery.rewrite(IndexReader reader) |
Query |
FilteredQuery.rewrite(IndexReader reader)
Rewrites the query.
|
Query |
PhraseQuery.rewrite(IndexReader reader) |
Q |
TopTermsRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
FieldCacheRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
abstract Query |
MultiTermQuery.RewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Q |
ScoringRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
DocTermOrdsRewriteMethod.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 | 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,
Analyzer analyzer) |
static TokenStream |
TokenSources.getTokenStreamWithOffsets(IndexReader reader,
int docId,
String field)
Returns a
TokenStream with positions and offsets constructed from
field termvectors. |
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 |
---|---|
Query |
ToParentBlockJoinQuery.rewrite(IndexReader reader) |
Query |
ToChildBlockJoinQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
Query |
SpanNearQuery.rewrite(IndexReader reader) |
Query |
SpanNotQuery.rewrite(IndexReader reader) |
Query |
SpanPositionCheckQuery.rewrite(IndexReader reader) |
Query |
SpanMultiTermQueryWrapper.rewrite(IndexReader reader) |
Query |
SpanOrQuery.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 |
---|---|
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,
CharsRef 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 contextsFeild 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 |
---|---|
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.
|
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.
|
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.