C# 클래스 Lucene.Net.Facet.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

파일 보기 프로젝트 열기: apache/lucenenet

보호된 프로퍼티들

프로퍼티 타입 설명
config Lucene.Net.Facet.FacetsConfig
searcher Lucene.Net.Search.IndexSearcher
state Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState
taxoReader TaxonomyReader

공개 메소드들

메소드 설명
DrillSideways ( IndexSearcher searcher, Lucene.Net.Facet.FacetsConfig config, SortedSetDocValuesReaderState state ) : Lucene.Net.Facet.SortedSet

Create a new DrillSideways instance, assuming the categories were indexed with SortedSetDocValuesFacetField.

DrillSideways ( IndexSearcher searcher, Lucene.Net.Facet.FacetsConfig config, TaxonomyReader taxoReader ) : Lucene.Net.Facet.SortedSet

Create a new DrillSideways instance.

DrillSideways ( IndexSearcher searcher, Lucene.Net.Facet.FacetsConfig config, TaxonomyReader taxoReader, SortedSetDocValuesReaderState state ) : Lucene.Net.Facet.SortedSet

Create a new DrillSideways instance, where some dimensions were indexed with SortedSetDocValuesFacetField and others were indexed with FacetField.

Search ( DrillDownQuery query, Collector hitCollector ) : DrillSidewaysResult

Search, collecting hits with a Collector, and computing drill down and sideways counts.

Search ( DrillDownQuery query, Filter filter, FieldDoc after, int topN, Lucene.Net.Search.Sort sort, bool doDocScores, bool doMaxScore ) : DrillSidewaysResult

Search, sorting by Sort, and computing drill down and sideways counts.

Search ( DrillDownQuery query, int topN ) : DrillSidewaysResult

Search, sorting by score, and computing drill down and sideways counts.

Search ( Lucene.Net.Search.ScoreDoc after, DrillDownQuery query, int topN ) : DrillSidewaysResult

Search, sorting by score, and computing drill down and sideways counts.

보호된 메소드들

메소드 설명
BuildFacetsResult ( FacetsCollector drillDowns, FacetsCollector drillSideways, string drillSidewaysDims ) : Lucene.Net.Facet.Facets

Subclass can override to customize per-dim Facets impl.

ScoreSubDocsAtOnce ( ) : bool

Override this and return true if your collector (e.g., 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 Collector.AcceptsDocsOutOfOrder: this will trick BooleanQuery into also scoring all subDocs at once.

메소드 상세

BuildFacetsResult() 보호된 메소드

Subclass can override to customize per-dim Facets impl.
protected BuildFacetsResult ( FacetsCollector drillDowns, FacetsCollector drillSideways, string drillSidewaysDims ) : Lucene.Net.Facet.Facets
drillDowns FacetsCollector
drillSideways FacetsCollector
drillSidewaysDims string
리턴 Lucene.Net.Facet.Facets

DrillSideways() 공개 메소드

Create a new DrillSideways instance, assuming the categories were indexed with SortedSetDocValuesFacetField.
public DrillSideways ( IndexSearcher searcher, Lucene.Net.Facet.FacetsConfig config, SortedSetDocValuesReaderState state ) : Lucene.Net.Facet.SortedSet
searcher Lucene.Net.Search.IndexSearcher
config Lucene.Net.Facet.FacetsConfig
state Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState
리턴 Lucene.Net.Facet.SortedSet

DrillSideways() 공개 메소드

Create a new DrillSideways instance.
public DrillSideways ( IndexSearcher searcher, Lucene.Net.Facet.FacetsConfig config, TaxonomyReader taxoReader ) : Lucene.Net.Facet.SortedSet
searcher Lucene.Net.Search.IndexSearcher
config Lucene.Net.Facet.FacetsConfig
taxoReader TaxonomyReader
리턴 Lucene.Net.Facet.SortedSet

DrillSideways() 공개 메소드

Create a new DrillSideways instance, where some dimensions were indexed with SortedSetDocValuesFacetField and others were indexed with FacetField.
public DrillSideways ( IndexSearcher searcher, Lucene.Net.Facet.FacetsConfig config, TaxonomyReader taxoReader, SortedSetDocValuesReaderState state ) : Lucene.Net.Facet.SortedSet
searcher Lucene.Net.Search.IndexSearcher
config Lucene.Net.Facet.FacetsConfig
taxoReader TaxonomyReader
state Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState
리턴 Lucene.Net.Facet.SortedSet

ScoreSubDocsAtOnce() 보호된 메소드

Override this and return true if your collector (e.g., 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 Collector.AcceptsDocsOutOfOrder: this will trick BooleanQuery into also scoring all subDocs at once.
protected ScoreSubDocsAtOnce ( ) : bool
리턴 bool

Search() 공개 메소드

Search, collecting hits with a Collector, and computing drill down and sideways counts.
public Search ( DrillDownQuery query, Collector hitCollector ) : DrillSidewaysResult
query DrillDownQuery
hitCollector Lucene.Net.Search.Collector
리턴 DrillSidewaysResult

Search() 공개 메소드

Search, sorting by Sort, and computing drill down and sideways counts.
public Search ( DrillDownQuery query, Filter filter, FieldDoc after, int topN, Lucene.Net.Search.Sort sort, bool doDocScores, bool doMaxScore ) : DrillSidewaysResult
query DrillDownQuery
filter Lucene.Net.Search.Filter
after Lucene.Net.Search.FieldDoc
topN int
sort Lucene.Net.Search.Sort
doDocScores bool
doMaxScore bool
리턴 DrillSidewaysResult

Search() 공개 메소드

Search, sorting by score, and computing drill down and sideways counts.
public Search ( DrillDownQuery query, int topN ) : DrillSidewaysResult
query DrillDownQuery
topN int
리턴 DrillSidewaysResult

Search() 공개 메소드

Search, sorting by score, and computing drill down and sideways counts.
public Search ( Lucene.Net.Search.ScoreDoc after, DrillDownQuery query, int topN ) : DrillSidewaysResult
after Lucene.Net.Search.ScoreDoc
query DrillDownQuery
topN int
리턴 DrillSidewaysResult

프로퍼티 상세

config 보호되어 있는 프로퍼티

FacetsConfig passed to constructor.
protected FacetsConfig,Lucene.Net.Facet config
리턴 Lucene.Net.Facet.FacetsConfig

searcher 보호되어 있는 프로퍼티

IndexSearcher passed to constructor.
protected IndexSearcher,Lucene.Net.Search searcher
리턴 Lucene.Net.Search.IndexSearcher

state 보호되어 있는 프로퍼티

SortedSetDocValuesReaderState passed to constructor; can be null.
protected SortedSetDocValuesReaderState,Lucene.Net.Facet.SortedSet state
리턴 Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState

taxoReader 보호되어 있는 프로퍼티

TaxonomyReader passed to constructor.
protected TaxonomyReader taxoReader
리턴 TaxonomyReader