Package | Description |
---|---|
org.apache.lucene.analysis.query |
Automatically filter high-frequency stopwords.
|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
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.complexPhrase |
QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"
|
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.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.
|
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 | Field and Description |
---|---|
private IndexReader |
LazyDocument.reader |
Modifier and Type | Method and Description |
---|---|
(package private) static float |
FeatureField.computePivotFeatureValue(IndexReader reader,
java.lang.String featureField,
java.lang.String featureName)
Compute a feature value that may be used as the
pivot parameter of
the FeatureField.newSaturationQuery(String, String, float, float) and
FeatureField.newSigmoidQuery(String, String, float, float, float) factory
methods. |
(package private) FeatureField.FeatureFunction |
FeatureField.FeatureFunction.rewrite(IndexReader reader) |
FeatureField.FeatureFunction |
FeatureField.SaturationFunction.rewrite(IndexReader reader) |
Query |
SortedSetDocValuesRangeQuery.rewrite(IndexReader reader) |
Query |
SortedNumericDocValuesRangeQuery.rewrite(IndexReader reader) |
Query |
FeatureQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
LazyDocument(IndexReader reader,
int docID) |
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. |
(package private) class |
MergeReaderWrapper
This is a hack to make index sorting fast, with a
LeafReader that always returns merge instances when you ask for the codec readers. |
private static class |
MultiPassIndexSplitter.FakeDeleteIndexReader
This class emulates deletions on the underlying index.
|
private static class |
MultiPassIndexSplitter.FakeDeleteLeafIndexReader |
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. |
private static class |
PKIndexSplitter.DocumentFilteredLeafIndexReader |
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.
|
(package private) static class |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader |
(package private) static class |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReader |
(package private) class |
SortingLeafReader
An
LeafReader which supports sorting documents by a given
Sort . |
class |
StandardDirectoryReader
Default implementation of
DirectoryReader . |
Modifier and Type | Field and Description |
---|---|
private R[] |
BaseCompositeReader.subReaders |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<IndexReader> |
ParallelCompositeReader.completeReaderSet |
private java.util.Set<IndexReader> |
IndexReader.parentReaders |
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 |
---|---|
private IndexReaderContext |
CompositeReaderContext.Builder.build(CompositeReaderContext parent,
IndexReader reader,
int ord,
int docBase) |
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 java.util.Collection<java.lang.String> |
FieldInfos.getIndexedFields(IndexReader reader)
Returns a set of names of fields that have a terms index.
|
static Bits |
MultiBits.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 |
FieldInfos.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 |
MultiTerms.getTermPostingsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified
field and term. |
static PostingsEnum |
MultiTerms.getTermPostingsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified
field and term, with control over whether freqs, positions, offsets or payloads
are required. |
static Terms |
MultiTerms.getTerms(IndexReader r,
java.lang.String field)
This method may return null if the field does not exist or if it has no terms.
|
private static MultiPassIndexSplitter.FakeDeleteLeafIndexReader[] |
MultiPassIndexSplitter.FakeDeleteIndexReader.initSubReaders(IndexReader reader) |
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) ). |
private long |
IndexWriter.tryModifyDocument(IndexReader readerIn,
int docID,
IndexWriter.DocModifier toApply) |
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. |
FakeDeleteIndexReader(IndexReader reader) |
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 |
---|---|
private class |
MemoryIndex.MemoryIndexReader
Search support for Lucene framework integration; implements all methods
required by the Lucene IndexReader contracts.
|
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.collectTermStates(IndexReader reader,
java.util.List<LeafReaderContext> leaves,
TermStates[] contextArray,
Term[] queryTerms) |
Query |
CommonTermsQuery.rewrite(IndexReader reader) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexReader |
FunctionQuery.AllScorer.reader |
Modifier and Type | Method and Description |
---|---|
double |
IndexReaderFunctions.ReaderFunction.apply(IndexReader reader) |
Query |
FunctionScoreQuery.rewrite(IndexReader reader) |
Modifier and Type | Field and Description |
---|---|
private IndexReader |
MoreLikeThis.ir
IndexReader to use
|
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 |
PayloadScoreQuery.rewrite(IndexReader reader) |
Query |
SpanPayloadCheckQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
Query |
ComplexPhraseQueryParser.ComplexPhraseQuery.rewrite(IndexReader reader) |
Modifier and Type | Field and Description |
---|---|
private IndexReader |
SpanNearClauseFactory.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) |
abstract Query |
RewriteQuery.rewrite(IndexReader reader) |
Query |
SimpleTermRewriteQuery.rewrite(IndexReader reader) |
Query |
DistanceRewriteQuery.rewrite(IndexReader reader) |
void |
SrndTruncQuery.visitMatchingTerms(IndexReader reader,
java.lang.String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
abstract void |
SimpleTerm.visitMatchingTerms(IndexReader reader,
java.lang.String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndPrefixQuery.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 |
---|---|
private void |
FuzzyLikeThisQuery.addTerms(IndexReader reader,
FuzzyLikeThisQuery.FieldVals f,
FuzzyLikeThisQuery.ScoreTermQueue q) |
private Query |
FuzzyLikeThisQuery.newTermQuery(IndexReader reader,
Term term) |
Query |
FuzzyLikeThisQuery.rewrite(IndexReader reader) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexReader |
IndexSearcher.reader |
Modifier and Type | Method and Description |
---|---|
IndexReader |
IndexSearcher.getIndexReader()
Return the
IndexReader this searches. |
Modifier and Type | Method and Description |
---|---|
(package private) void |
TermCollectingRewrite.collectTerms(IndexReader reader,
MultiTermQuery query,
TermCollectingRewrite.TermCollector collector) |
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 |
TermAutomatonQuery.rewrite(IndexReader reader) |
Query |
BM25FQuery.rewrite(IndexReader reader) |
Query |
CoveringQuery.rewrite(IndexReader reader) |
Query |
BlendedTermQuery.rewrite(IndexReader reader) |
Query |
BooleanQuery.rewrite(IndexReader reader) |
Query |
BoostQuery.rewrite(IndexReader reader) |
Query |
NGramPhraseQuery.rewrite(IndexReader reader) |
Query |
SynonymQuery.rewrite(IndexReader reader) |
Query |
IndexOrDocValuesQuery.rewrite(IndexReader reader) |
Query |
TermInSetQuery.rewrite(IndexReader reader) |
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations
|
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
ConstantScoreQuery.rewrite(IndexReader reader) |
Query |
PhraseQuery.rewrite(IndexReader reader) |
Query |
MultiPhraseQuery.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 |
DocValuesRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
ScoringRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
TopTermsRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
abstract Query |
MultiTermQuery.RewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Constructor and Description |
---|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
TermVectorLeafReader
Wraps a Terms with a
LeafReader , typically from term vectors. |
(package private) static class |
WeightedSpanTermExtractor.DelegatingLeafReader |
Modifier and Type | Field and Description |
---|---|
private IndexReader |
QueryScorer.reader |
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 . |
private void |
QueryScorer.init(Query query,
java.lang.String field,
IndexReader reader,
boolean expandMultiTermQuery) |
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 |
ParentChildrenBlockJoinQuery.rewrite(IndexReader reader) |
Query |
ToParentBlockJoinQuery.rewrite(IndexReader reader) |
Query |
ToChildBlockJoinQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
Query |
SpanBoostQuery.rewrite(IndexReader reader) |
Query |
SpanMultiTermQueryWrapper.rewrite(IndexReader reader) |
Query |
SpanNearQuery.rewrite(IndexReader reader) |
Query |
FieldMaskingSpanQuery.rewrite(IndexReader reader) |
Query |
SpanNotQuery.rewrite(IndexReader reader) |
Query |
SpanContainQuery.rewrite(IndexReader reader) |
Query |
SpanPositionCheckQuery.rewrite(IndexReader reader) |
Query |
SpanOrQuery.rewrite(IndexReader reader) |
abstract SpanQuery |
SpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
SpanQuery |
SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Modifier and Type | Class and Description |
---|---|
class |
OverlaySingleDocTermsLeafReader
Overlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is
consulted.
|
private static class |
PhraseHelper.SingleFieldWithOffsetsFilterLeafReader
Needed to support the ability to highlight a query irrespective of the field a query refers to
(aka requireFieldMatch=false).
|
(package private) class |
TermVectorFilteredLeafReader
A filtered LeafReader that only includes the terms that are also in a provided set of terms.
|
private static class |
UnifiedHighlighter.TermVectorReusingLeafReader
Wraps an IndexReader that remembers/caches the last call to
getTermVectors(int) so that
if the next call has the same ID, then it is reused. |
Modifier and Type | Method and Description |
---|---|
(package private) static IndexReader |
UnifiedHighlighter.TermVectorReusingLeafReader.wrap(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
(package private) static IndexReader |
UnifiedHighlighter.TermVectorReusingLeafReader.wrap(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
FieldQuery.QueryPhraseMap.add(Query query,
IndexReader reader) |
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 |
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.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.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[] |
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[] |
BaseFragmentsBuilder.createFragments(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldFragList fieldFragList,
int maxNumFragments,
java.lang.String[] preTags,
java.lang.String[] postTags,
Encoder encoder) |
protected void |
FieldQuery.flatten(Query sourceQuery,
IndexReader reader,
java.util.Collection<Query> flatQueries,
float boost) |
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.
|
private FieldFragList |
FastVectorHighlighter.getFieldFragList(FragListBuilder fragListBuilder,
FieldQuery fieldQuery,
IndexReader reader,
int docId,
java.util.Set<java.lang.String> matchedFields,
int fragCharSize)
Build a FieldFragList for more than one field.
|
private FieldFragList |
FastVectorHighlighter.getFieldFragList(FragListBuilder fragListBuilder,
FieldQuery fieldQuery,
IndexReader reader,
int docId,
java.lang.String matchedField,
int fragCharSize)
Build a FieldFragList for one field.
|
FieldQuery |
FastVectorHighlighter.getFieldQuery(Query query,
IndexReader reader)
create a
FieldQuery object. |
protected Field[] |
BaseFragmentsBuilder.getFields(IndexReader reader,
int docId,
java.lang.String fieldName) |
(package private) void |
FieldQuery.saveTerms(java.util.Collection<Query> flatQueries,
IndexReader reader) |
Constructor and Description |
---|
FieldQuery(Query query,
IndexReader reader,
boolean phraseHighlight,
boolean fieldMatch) |
FieldTermStack(IndexReader reader,
int docId,
java.lang.String fieldName,
FieldQuery fieldQuery)
a constructor.
|