/// <summary> /// Sparse faceting: returns any dimension that had any /// hits, topCount labels per dimension. /// </summary> public SortedSetDocValuesFacetCounts(SortedSetDocValuesReaderState state, FacetsCollector hits) { this.state = state; this.field = state.Field; dv = state.GetDocValues(); counts = new int[state.Count]; //System.out.println("field=" + field); Count(hits.GetMatchingDocs()); }
/// <summary> /// Create a new {@code DrillSideways} instance, where some /// dimensions were indexed with {@link /// SortedSetDocValuesFacetField} and others were indexed /// with <seealso cref="FacetField"/>. /// </summary> public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader, SortedSetDocValuesReaderState state) { this.searcher = searcher; this.config = config; this.taxoReader = taxoReader; this.state = state; }
/// <summary> /// Create a new {@code DrillSideways} instance, assuming the categories were /// indexed with <seealso cref="SortedSetDocValuesFacetField"/>. /// </summary> public DrillSideways(IndexSearcher searcher, FacetsConfig config, SortedSetDocValuesReaderState state) : this(searcher, config, null, state) { }