Lucene.Net 1.9.1 Class Library

Lucene.Net.Search Namespace

Namespace hierarchy

Classes

Class Description
AnonymousClassScoreDocComparator  
AnonymousClassScoreDocComparator1  
BooleanClause A clause in a BooleanQuery.
BooleanClause.Occur  
BooleanQuery A Query that matches documents matching boolean combinations of other queries, e.g. {@link TermQuery}s, {@link PhraseQuery}s or other BooleanQuerys.
BooleanQuery.TooManyClauses Thrown when an attempt is made to add more than {@link #GetMaxClauseCount()} clauses. This typically happens if a PrefixQuery, FuzzyQuery, WildcardQuery, or RangeQuery is expanded to many terms during search.
CachingWrapperFilter Wraps another filter's result and caches it. The caching behavior is like {@link QueryFilter}. The purpose is to allow filters to simply filter, and then wrap with this class to add caching, keeping the two concerns decoupled yet composable.
ConstantScoreQuery A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.
ConstantScoreQuery.ConstantScorer  
ConstantScoreQuery.ConstantWeight  
ConstantScoreRangeQuery  
DateFilter A Filter that restricts search results to a range of time.

For this to work, documents must have been indexed with a {@link DateField}.

DefaultSimilarity Expert: Default scoring implementation.
DisjunctionMaxQuery A query that generates the union of the documents produced by its subqueries, and that scores each document as the maximum score for that document produced by any subquery plus a tie breaking increment for any additional matching subqueries. This is useful to search for a word in multiple fields with different boost factors (so that the fields cannot be combined equivalently into a single search field). We want the primary score to be the one associated with the highest boost, not the sum of the field scores (as BooleanQuery would give). If the query is "albino elephant" this ensures that "albino" matching one field and "elephant" matching another gets a higher score than "albino" matching both fields. To get this result, use both BooleanQuery and DisjunctionMaxQuery: for each term a DisjunctionMaxQuery searches for it in each field, while the set of these DisjunctionMaxQuery's is combined into a BooleanQuery. The tie breaker capability allows results that include the same term in multiple fields to be judged better than results that include this term in only the best of those multiple fields, without confusing this with the better case of two different terms in the multiple fields.
DisjunctionSumScorer A Scorer for OR like queries, counterpart of Lucene's
ConjunctionScorer
. This Scorer implements {@link Scorer#SkipTo(int)} and uses skipTo() on the given Scorers.
Explanation Expert: Describes the score computation for document and query.
FieldDoc  
Filter Abstract base class providing a mechanism to restrict searches to a subset of an index.
FilteredQuery  
FilteredTermEnum  
FuzzyQuery Implements the fuzzy search query. The similiarity measurement is based on the Levenshtein (edit distance) algorithm.
FuzzyTermEnum  
Hit Wrapper used by {@link HitIterator} to provide a lazily loaded hit from {@link Hits}.
HitCollector  
HitIterator An iterator over {@link Hits} that provides lazy fetching of each document. {@link Hits#Iterator()} returns an instance of this class. Calls to {@link #next()} return a {@link Hit} instance.
Hits A ranked list of documents, used to hold search results.
IndexSearcher  
MatchAllDocsQuery A query that matches all documents.
MultiPhraseQuery MultiPhraseQuery is a generalized version of PhraseQuery, with an added method {@link #Add(Term[])}. To use this class, to search for the phrase "Microsoft app*" first use add(Term) on the term "Microsoft", then find all terms that have "app" as prefix using IndexReader.terms(Term), and use MultiPhraseQuery.add(Term[] terms) to add them to the query.
MultiSearcher  
MultiTermQuery  
ParallelMultiSearcher  
PhrasePrefixQuery PhrasePrefixQuery is a generalized version of PhraseQuery, with an added method {@link #Add(Term[])}. To use this class, to search for the phrase "Microsoft app*" first use add(Term) on the term "Microsoft", then find all terms that has "app" as prefix using IndexReader.terms(Term), and use PhrasePrefixQuery.add(Term[] terms) to add them to the query.
PhraseQuery  
PrefixQuery A Query that matches documents containing terms with a specified prefix. A PrefixQuery is built by QueryParser for input like
app*
.
Query  
QueryFilter  
QueryTermVector
RangeFilter A Filter that restricts search results to a range of values in a given field.

This code borrows heavily from {@link RangeQuery}, but is implemented as a Filter (much like {@link DateFilter}).

RangeQuery A Query that matches documents within an exclusive range. A RangeQuery is built by QueryParser for input like
[010 TO 120]
.
RemoteSearchable A remote searchable implementation.
ReqExclScorer  
ReqOptSumScorer  
ScoreDoc Expert: Returned by low-level search implementations.
Scorer  
Searcher  
Similarity  
SimilarityDelegator Expert: Delegating scoring implementation. Useful in {@link Query#GetSimilarity(Searcher)} implementations, to override only certain methods of a Searcher's Similiarty implementation..
Sort  
SortComparator  
SortField  
StringIndex  
TermQuery A Query that matches documents containing a term. This may be combined with other terms with a {@link BooleanQuery}.
TopDocs Expert: Returned by low-level search implementations.
TopFieldDocs  
WildcardQuery Implements the wildcard search query. Supported wildcards are
*
, which matches any character sequence (including the empty one), and
?
, which matches any single character. Note this query can be slow, as it needs to iterate over many terms. In order to prevent extremely slow WildcardQueries, a Wildcard term should not start with one of the wildcards
*
or
?
.
WildcardTermEnum  

Interfaces

Interface Description
FieldCache  
FloatParser Interface to parse floats from document fields.
IntParser Interface to parse ints from document fields.
ScoreDocComparator  
Searchable  
SortComparatorSource  
Weight  

Structures

Structure Description
FieldCache_Fields  
ScoreDocComparator_Fields