Namespace Lucene.Net.QueryParsers.Xml.Builders
XML Parser factories for different Lucene Query/Filters.
Classes
BooleanFilterBuilder
Builder for Lucene.
BooleanQueryBuilder
Builder for Lucene.
BoostingQueryBuilder
Builder for Lucene.
BoostingTermBuilder
Builder for Payload
CachedFilterBuilder
Filters are cached in an LRU Cache keyed on the contained query or filter object. Using this will speed up overall performance for repeated uses of the same expensive query/filter. The sorts of queries/filters likely to benefit from caching need not necessarily be complex - e.g. simple TermQuerys with a large DF (document frequency) can be expensive on large indexes. A good example of this might be a term query on a field with only 2 possible values - "true" or "false". In a large index, querying or filtering on this field requires reading millions of document ids from disk which can more usefully be cached as a filter bitset.
For Queries/Filters to be cached and reused the object must implement hashcode and equals methods correctly so that duplicate queries/filters can be detected in the cache.
The CoreParser.maxNumCachedFilters property can be used to control the size of the LRU Cache established during the construction of CoreParser instances.
ConstantScoreQueryBuilder
Builder for Constant
DisjunctionMaxQueryBuilder
Builder for Disjunction
DuplicateFilterBuilder
Builder for Lucene.
FilteredQueryBuilder
Builder for Filtered
FuzzyLikeThisQueryBuilder
Builder for Lucene.
LikeThisQueryBuilder
Builder for Lucene.
MatchAllDocsQueryBuilder
Builder for Match
NumericRangeFilterBuilder
Creates a Numeric
Attribute nameValuesRequiredDefault | |
---|---|
fieldNameStringYesN/A | |
lowerTermSpecified by type YesN/A | |
upperTermSpecified by type YesN/A | |
typeint, long, float, doubleNoint | |
includeLowertrue, falseNotrue | |
includeUppertrue, falseNotrue | |
precisionStepintNo4 |
If an error occurs parsing the supplied lowerTerm
or
upperTerm
into the numeric type specified by type
, then the
error will be silently ignored and the resulting filter will not match any
documents.
NumericRangeQueryBuilder
Creates a Numeric
Attribute nameValuesRequiredDefault | |
---|---|
fieldNameStringYesN/A | |
lowerTermSpecified by type YesN/A | |
upperTermSpecified by type YesN/A | |
typeint, long, float, doubleNoint | |
includeLowertrue, falseNotrue | |
includeUppertrue, falseNotrue | |
precisionStepintNo4 |
A ParserlowerTerm
or upperTerm
into the numeric type
specified by type
.
RangeFilterBuilder
Builder for Term
SpanBuilderBase
Base class for building Lucene.
SpanFirstBuilder
Builder for Span
SpanNearBuilder
Builder for Span
SpanNotBuilder
Builder for Span
SpanOrBuilder
Builder for Span
SpanOrTermsBuilder
Builder that analyzes the text into a Span
SpanQueryBuilderFactory
Factory for ISpan
SpanTermBuilder
Builder for Lucene.
TermQueryBuilder
Builder for Lucene.
TermsFilterBuilder
Builder for Lucene.
TermsQueryBuilder
Builds a Lucene.
UserInputQueryBuilder
User
Interfaces
ISpanQueryBuilder
Interface for retrieving a Lucene.