Class DrillSideways
Computes drill down and sideways counts for the provided
DrillDownQuery. Drill sideways counts include
alternative values/aggregates for the drill-down
dimensions so that a dimension does not disappear after
the user drills down into it.
Use one of the static search
methods to do the search, and then get the hits and facet
results from the returned DrillSidewaysResult.
NOTE: this allocates one FacetsCollector
for each drill-down, plus one. If your
index has high number of facet labels then this will
multiply your memory usage.
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
DrillSideways
Assembly: Lucene.Net.Facet.dll
Syntax
public class DrillSideways
Constructors
DrillSideways(IndexSearcher, FacetsConfig, SortedSetDocValuesReaderState)
Declaration
public DrillSideways(IndexSearcher searcher, FacetsConfig config, SortedSetDocValuesReaderState state)
Parameters
DrillSideways(IndexSearcher, FacetsConfig, TaxonomyReader)
Declaration
public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader)
Parameters
DrillSideways(IndexSearcher, FacetsConfig, TaxonomyReader, SortedSetDocValuesReaderState)
Declaration
public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader, SortedSetDocValuesReaderState state)
Parameters
Fields
m_config
Declaration
protected readonly FacetsConfig m_config
Field Value
m_searcher
Lucene.Net.Search.IndexSearcher passed to constructor.
Declaration
protected readonly IndexSearcher m_searcher
Field Value
Type |
Description |
IndexSearcher |
|
m_state
Declaration
protected readonly SortedSetDocValuesReaderState m_state
Field Value
m_taxoReader
Declaration
protected readonly TaxonomyReader m_taxoReader
Field Value
Properties
ScoreSubDocsAtOnce
Override this and return true if your collector
(e.g., Lucene.Net.Join.ToParentBlockJoinCollector) expects all
sub-scorers to be positioned on the document being
collected. This will cause some performance loss;
default is false
. Note that if you return true from
this method (in a subclass) be sure your collector
also returns false
from Lucene.Net.Search.ICollector.AcceptsDocsOutOfOrder:
this will trick Lucene.Net.Search.BooleanQuery into also scoring all subDocs at
once.
Declaration
protected virtual bool ScoreSubDocsAtOnce { get; }
Property Value
Methods
BuildFacetsResult(FacetsCollector, FacetsCollector[], string[])
Subclass can override to customize per-dim Facets
impl.
Declaration
protected virtual Facets BuildFacetsResult(FacetsCollector drillDowns, FacetsCollector[] drillSideways, string[] drillSidewaysDims)
Parameters
Returns
Search(DrillDownQuery, Filter, FieldDoc, int, Sort, bool, bool)
Search, sorting by Lucene.Net.Search.Sort, and computing
drill down and sideways counts.
Declaration
public virtual DrillSidewaysResult Search(DrillDownQuery query, Filter filter, FieldDoc after, int topN, Sort sort, bool doDocScores, bool doMaxScore)
Parameters
Returns
Search(DrillDownQuery, ICollector)
Search, collecting hits with a Lucene.Net.Search.ICollector, and
computing drill down and sideways counts.
Declaration
public virtual DrillSidewaysResult Search(DrillDownQuery query, ICollector hitCollector)
Parameters
Returns
Search(DrillDownQuery, int)
Search, sorting by score, and computing
drill down and sideways counts.
Declaration
public virtual DrillSidewaysResult Search(DrillDownQuery query, int topN)
Parameters
Returns
Search(ScoreDoc, DrillDownQuery, int)
Search, sorting by score, and computing
drill down and sideways counts.
Declaration
public virtual DrillSidewaysResult Search(ScoreDoc after, DrillDownQuery query, int topN)
Parameters
Returns