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.
@lucene.experimental
Inheritance
System.Object
DrillSideways
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Lucene.Net.Facet.dll
Syntax
public class DrillSideways
Constructors
|
Improve this Doc
View Source
DrillSideways(IndexSearcher, FacetsConfig, SortedSetDocValuesReaderState)
Declaration
public DrillSideways(IndexSearcher searcher, FacetsConfig config, SortedSetDocValuesReaderState state)
Parameters
|
Improve this Doc
View Source
DrillSideways(IndexSearcher, FacetsConfig, TaxonomyReader)
Declaration
public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader)
Parameters
|
Improve this Doc
View Source
DrillSideways(IndexSearcher, FacetsConfig, TaxonomyReader, SortedSetDocValuesReaderState)
Declaration
public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader, SortedSetDocValuesReaderState state)
Parameters
Fields
|
Improve this Doc
View Source
m_config
Declaration
protected readonly FacetsConfig m_config
Field Value
|
Improve this Doc
View Source
m_searcher
Lucene.Net.Search.IndexSearcher passed to constructor.
Declaration
protected readonly IndexSearcher m_searcher
Field Value
Type |
Description |
Lucene.Net.Search.IndexSearcher |
|
|
Improve this Doc
View Source
m_state
Declaration
protected readonly SortedSetDocValuesReaderState m_state
Field Value
|
Improve this Doc
View Source
m_taxoReader
Declaration
protected readonly TaxonomyReader m_taxoReader
Field Value
Properties
|
Improve this Doc
View Source
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 BooleanQuery into also scoring all subDocs at
once.
Declaration
protected virtual bool ScoreSubDocsAtOnce { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
Search(DrillDownQuery, Filter, FieldDoc, Int32, Sort, Boolean, Boolean)
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
Type |
Name |
Description |
DrillDownQuery |
query |
|
Lucene.Net.Search.Filter |
filter |
|
Lucene.Net.Search.FieldDoc |
after |
|
System.Int32 |
topN |
|
Lucene.Net.Search.Sort |
sort |
|
System.Boolean |
doDocScores |
|
System.Boolean |
doMaxScore |
|
Returns
|
Improve this Doc
View Source
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
Type |
Name |
Description |
DrillDownQuery |
query |
|
Lucene.Net.Search.ICollector |
hitCollector |
|
Returns
|
Improve this Doc
View Source
Search(DrillDownQuery, Int32)
Search, sorting by score, and computing
drill down and sideways counts.
Declaration
public virtual DrillSidewaysResult Search(DrillDownQuery query, int topN)
Parameters
Returns
|
Improve this Doc
View Source
Search(ScoreDoc, DrillDownQuery, Int32)
Search, sorting by score, and computing
drill down and sideways counts.
Declaration
public virtual DrillSidewaysResult Search(ScoreDoc after, DrillDownQuery query, int topN)
Parameters
Type |
Name |
Description |
Lucene.Net.Search.ScoreDoc |
after |
|
DrillDownQuery |
query |
|
System.Int32 |
topN |
|
Returns