Section navigation

Public classSealed DrillDownQuery

Namespace
Rowles.LeanCorpus.Search.Queries
Assembly
Rowles.LeanCorpus.dll

Filters a base query by facet selections. Selections in different dimensions are combined with AND; selections in the same dimension are combined with OR.

public sealed class DrillDownQuery : Query, IEquatable<Query>
Inheritance
DrillDownQuery
Implements
Inherited Members
Extension Methods

Remarks

Exact selections use normal TermQuery clauses. Path selections use the reversible values emitted by FacetPathIndexer and are therefore queryable through the same postings index as ordinary string fields.

Public constructor DrillDownQuery(Query, params DrillDownSelection[])

Initialises a drill-down query from a base query and selections.

Public constructor DrillDownQuery(Query, IEnumerable<DrillDownSelection>)

Initialises a drill-down query from a base query and selections.

Public property BaseQuery

Gets the unfiltered base query.

Public property Field

Gets the single field this query targets, or an empty value for fieldless and multi-field queries.

Public property Selections

Gets the distinct, canonicalised selections.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.

Public method Rewrite()

Rewrites this query to an executable query form. Custom query types can override this to lower themselves to built-in queries.

Public method Visit(QueryVisitor)

Visits this query and its children.