Namespace Lucene.Net.QueryParsers.Xml.Builders
XML Parser factories for different Lucene Query/Filters.
Classes
BooleanFilterBuilder
Builder for Lucene.Net.Queries.BooleanFilter
BooleanQueryBuilder
Builder for Lucene.Net.Search.BooleanQuery
BoostingQueryBuilder
Builder for Lucene.Net.Queries.BoostingQuery
BoostingTermBuilder
Builder for Lucene.Net.Search.Payloads.PayloadTermQuery
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 Lucene.Net.Search.ConstantScoreQuery
DisjunctionMaxQueryBuilder
Builder for Lucene.Net.Search.DisjunctionMaxQuery
DuplicateFilterBuilder
Builder for Lucene.Net.Sandbox.Queries.DuplicateFilter
FilteredQueryBuilder
Builder for Lucene.Net.Search.FilteredQuery
FuzzyLikeThisQueryBuilder
Builder for Lucene.Net.Sandbox.Queries.FuzzyLikeThisQuery
LikeThisQueryBuilder
Builder for Lucene.Net.Queries.Mlt.MoreLikeThisQuery
MatchAllDocsQueryBuilder
Builder for Lucene.Net.Search.MatchAllDocsQuery
NumericRangeFilterBuilder
Creates a Lucene.Net.Search.NumericRangeFilter. The table below specifies the required attributes and the defaults if optional attributes are omitted. For more detail on what each of the attributes actually do, consult the documentation for Lucene.Net.Search.NumericRangeFilter:
Attribute name | Values | Required | Default |
---|---|---|---|
fieldName | String | Yes | N/A |
lowerTerm | Specified by type | Yes | N/A |
upperTerm | Specified by type | Yes | N/A |
type | int, long, float, double | No | int |
includeLower | true, false | No | true |
includeUpper | true, false | No | true |
precisionStep | int | No | 4 |
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 Lucene.Net.Search.NumericRangeQuery. The table below specifies the required attributes and the defaults if optional attributes are omitted. For more detail on what each of the attributes actually do, consult the documentation for Lucene.Net.Search.NumericRangeQuery:
Attribute name | Values | Required | Default |
---|---|---|---|
fieldName | String | Yes | N/A |
lowerTerm | Specified by type | Yes | N/A |
upperTerm | Specified by type | Yes | N/A |
type | int, long, float, double | No | int |
includeLower | true, false | No | true |
includeUpper | true, false | No | true |
precisionStep | int | No | 4 |
lowerTerm
or upperTerm
into the numeric type
specified by type
.
RangeFilterBuilder
Builder for Lucene.Net.Search.TermRangeFilter
SpanBuilderBase
Base class for building Lucene.Net.Search.Spans.SpanQuerys
SpanFirstBuilder
Builder for Lucene.Net.Search.Spans.SpanFirstQuery
SpanNearBuilder
Builder for Lucene.Net.Search.Spans.SpanNearQuery
SpanNotBuilder
Builder for Lucene.Net.Search.Spans.SpanNotQuery
SpanOrBuilder
Builder for Lucene.Net.Search.Spans.SpanOrQuery
SpanOrTermsBuilder
Builder that analyzes the text into a Lucene.Net.Search.Spans.SpanOrQuery
SpanQueryBuilderFactory
Factory for ISpanQueryBuilders
SpanTermBuilder
Builder for Lucene.Net.Search.Spans.SpanTermQuery
TermQueryBuilder
Builder for Lucene.Net.Search.TermQuery
TermsFilterBuilder
Builder for Lucene.Net.Queries.TermsFilter
TermsQueryBuilder
Builds a Lucene.Net.Search.BooleanQuery from all of the terms found in the XML element using the choice of analyzer
UserInputQueryBuilder
UserInputQueryBuilder uses 1 of 2 strategies for thread-safe parsing:
- Synchronizing access to "Parse" calls on a previously supplied QueryParser or..
- creating a new QueryParser object for each parse request
Interfaces
ISpanQueryBuilder
Interface for retrieving a Lucene.Net.Search.Spans.SpanQuery