Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.misc | |
org.apache.lucene.queryParser.surround.query |
This package contains SrndQuery and its subclasses.
|
org.apache.lucene.search |
Search over 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.regex |
Regular expression Query.
|
org.apache.lucene.search.similar |
Document similarity query generators.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
Modifier and Type | Class and Description |
---|---|
class |
FilterIndexReader
A
FilterIndexReader contains another IndexReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
MultiReader
An IndexReader which reads multiple indexes, appending their content.
|
class |
ParallelReader
An IndexReader which reads multiple, parallel indexes.
|
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
FilterIndexReader.in |
protected IndexReader |
IndexModifier.indexReader |
Modifier and Type | Method and Description |
---|---|
static IndexReader |
IndexReader.open(Directory directory)
Returns an IndexReader reading the index in the given Directory.
|
static IndexReader |
IndexReader.open(File path)
Returns an IndexReader reading the index in an FSDirectory in the named
path.
|
static IndexReader |
IndexReader.open(String path)
Returns an IndexReader reading the index in an FSDirectory in the named
path.
|
Modifier and Type | Method and Description |
---|---|
void |
ParallelReader.add(IndexReader reader)
Add an IndexReader.
|
void |
ParallelReader.add(IndexReader reader,
boolean ignoreStoredFields)
Add an IndexReader whose stored fields will not be returned.
|
void |
IndexWriter.addIndexes(IndexReader[] readers)
Merges the provided indexes into this index.
|
Constructor and Description |
---|
FilterIndexReader(IndexReader in)
Construct a FilterIndexReader based on the specified base reader.
|
MultipleTermPositions(IndexReader indexReader,
Term[] terms)
Creates a new
MultipleTermPositions instance. |
MultiReader(IndexReader[] subReaders)
Construct a MultiReader aggregating the named set of (sub)readers.
|
Modifier and Type | Method and Description |
---|---|
BitSet |
ChainedFilter.bits(IndexReader reader)
|
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) |
abstract void |
SimpleTerm.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndPrefixQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndTermQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
void |
SrndTruncQuery.visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
Constructor and Description |
---|
SpanNearClauseFactory(IndexReader reader,
String fieldName,
BasicQueryFactory qf) |
Modifier and Type | Method and Description |
---|---|
IndexReader |
IndexSearcher.getIndexReader()
Return the
IndexReader this searches. |
Modifier and Type | Method and Description |
---|---|
BitSet |
CachingWrapperFilter.bits(IndexReader reader) |
BitSet |
DateFilter.bits(IndexReader reader)
Deprecated.
Returns a BitSet with true for documents which should be
permitted in search results, and false for those that should
not.
|
abstract BitSet |
Filter.bits(IndexReader reader)
Returns a BitSet with true for documents which should be permitted in
search results, and false for those that should not.
|
BitSet |
QueryFilter.bits(IndexReader reader) |
BitSet |
RangeFilter.bits(IndexReader reader)
Returns a BitSet with true for documents which should be
permitted in search results, and false for those that should
not.
|
Explanation |
ConstantScoreQuery.ConstantWeight.explain(IndexReader reader,
int doc) |
Explanation |
Weight.explain(IndexReader reader,
int doc)
An explanation of the score computation for the named document.
|
Object |
FieldCache.getAuto(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if
none is found reads
field to see if it contains integers, floats
or strings, and then calls one of the other methods in this class to get the
values. |
Comparable[] |
FieldCache.getCustom(IndexReader reader,
String field,
SortComparator comparator)
Checks the internal cache for an appropriate entry, and if none
is found reads the terms out of
field and calls the given SortComparator
to get the sort values. |
protected FilteredTermEnum |
FuzzyQuery.getEnum(IndexReader reader) |
protected abstract FilteredTermEnum |
MultiTermQuery.getEnum(IndexReader reader)
Construct the enumeration to be used, expanding the pattern term.
|
protected FilteredTermEnum |
WildcardQuery.getEnum(IndexReader reader) |
float[] |
FieldCache.getFloats(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
float[] |
FieldCache.getFloats(IndexReader reader,
String field,
FieldCache.FloatParser parser)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
int[] |
FieldCache.getInts(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in
field as integers and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
int[] |
FieldCache.getInts(IndexReader reader,
String field,
FieldCache.IntParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as integers and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
FieldCache.StringIndex |
FieldCache.getStringIndex(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none
is found reads the term values in
field and returns
an array of them in natural order, along with an array telling
which element in the term array each document uses. |
String[] |
FieldCache.getStrings(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in
field and returns an array
of size reader.maxDoc() containing the value each document
has in the given field. |
ScoreDocComparator |
SortComparator.newComparator(IndexReader reader,
String fieldname) |
ScoreDocComparator |
SortComparatorSource.newComparator(IndexReader reader,
String fieldname)
Creates a comparator for the field in the given index.
|
Query |
BooleanQuery.rewrite(IndexReader reader) |
Query |
ConstantScoreQuery.rewrite(IndexReader reader) |
Query |
ConstantScoreRangeQuery.rewrite(IndexReader reader) |
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations
|
Query |
FilteredQuery.rewrite(IndexReader reader)
Rewrites the wrapped query.
|
Query |
FuzzyQuery.rewrite(IndexReader reader) |
Query |
MultiPhraseQuery.rewrite(IndexReader reader) |
Query |
MultiTermQuery.rewrite(IndexReader reader) |
Query |
PrefixQuery.rewrite(IndexReader reader) |
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
RangeQuery.rewrite(IndexReader reader) |
Scorer |
ConstantScoreQuery.ConstantWeight.scorer(IndexReader reader) |
Scorer |
Weight.scorer(IndexReader reader)
Constructs a scorer for this.
|
Constructor and Description |
---|
ConstantScoreQuery.ConstantScorer(Similarity similarity,
IndexReader reader,
Weight w) |
FieldSortedHitQueue(IndexReader reader,
SortField[] fields,
int size)
Creates a hit queue sorted by the given list of fields.
|
FuzzyTermEnum(IndexReader reader,
Term term)
Creates a FuzzyTermEnum with an empty prefix and a minSimilarity of 0.5f.
|
FuzzyTermEnum(IndexReader reader,
Term term,
float minSimilarity)
Creates a FuzzyTermEnum with an empty prefix.
|
FuzzyTermEnum(IndexReader reader,
Term term,
float minSimilarity,
int prefixLength)
Constructor for enumeration of all terms from specified
reader which share a prefix of
length prefixLength with term and which have a fuzzy similarity >
minSimilarity . |
IndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
TopFieldDocCollector(IndexReader reader,
Sort sort,
int numHits)
Construct to collect a given number of hits.
|
WildcardTermEnum(IndexReader reader,
Term term)
Creates a new
WildcardTermEnum . |
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 WeightedTerm[] |
QueryTermExtractor.getIdfWeightedTerms(Query query,
IndexReader reader,
String fieldName)
Extracts all terms texts of a given Query into an array of WeightedTerms
|
static TokenStream |
TokenSources.getTokenStream(IndexReader reader,
int docId,
String field) |
static TokenStream |
TokenSources.getTokenStream(IndexReader reader,
int docId,
String field,
Analyzer analyzer) |
Constructor and Description |
---|
QueryScorer(Query query,
IndexReader reader,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermEnum |
RegexQuery.getEnum(IndexReader reader) |
Spans |
SpanRegexQuery.getSpans(IndexReader reader) |
Query |
SpanRegexQuery.rewrite(IndexReader reader) |
Constructor and Description |
---|
RegexTermEnum(IndexReader reader,
Term term,
org.apache.lucene.search.regex.RegexCapabilities regexImpl) |
Constructor and Description |
---|
MoreLikeThis(IndexReader ir)
Constructor requiring an IndexReader.
|
Modifier and Type | Method and Description |
---|---|
Spans |
SpanFirstQuery.getSpans(IndexReader reader) |
Spans |
SpanNearQuery.getSpans(IndexReader reader) |
Spans |
SpanNotQuery.getSpans(IndexReader reader) |
Spans |
SpanOrQuery.getSpans(IndexReader reader) |
abstract Spans |
SpanQuery.getSpans(IndexReader reader)
Expert: Returns the matches for this query in an index.
|
Spans |
SpanTermQuery.getSpans(IndexReader reader) |
Query |
SpanFirstQuery.rewrite(IndexReader reader) |
Query |
SpanNearQuery.rewrite(IndexReader reader) |
Query |
SpanNotQuery.rewrite(IndexReader reader) |
Query |
SpanOrQuery.rewrite(IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
String[] |
SpellChecker.suggestSimilar(String word,
int num_sug,
IndexReader ir,
String field,
boolean morePopular)
Suggest similar words (restricted or not to a field of a user index)
|
Constructor and Description |
---|
LuceneDictionary(IndexReader reader,
String field) |
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.