• API

    Show / Hide Table of Contents

    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()
    Namespace: Lucene.Net.Facet
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class DrillSideways

    Constructors

    | Improve this Doc View Source

    DrillSideways(IndexSearcher, FacetsConfig, SortedSetDocValuesReaderState)

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

    Declaration
    public DrillSideways(IndexSearcher searcher, FacetsConfig config, SortedSetDocValuesReaderState state)
    Parameters
    Type Name Description
    Lucene.Net.Search.IndexSearcher searcher
    FacetsConfig config
    SortedSetDocValuesReaderState state
    | Improve this Doc View Source

    DrillSideways(IndexSearcher, FacetsConfig, TaxonomyReader)

    Create a new DrillSideways instance.

    Declaration
    public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader)
    Parameters
    Type Name Description
    Lucene.Net.Search.IndexSearcher searcher
    FacetsConfig config
    TaxonomyReader taxoReader
    | Improve this Doc View Source

    DrillSideways(IndexSearcher, FacetsConfig, TaxonomyReader, SortedSetDocValuesReaderState)

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

    Declaration
    public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader, SortedSetDocValuesReaderState state)
    Parameters
    Type Name Description
    Lucene.Net.Search.IndexSearcher searcher
    FacetsConfig config
    TaxonomyReader taxoReader
    SortedSetDocValuesReaderState state

    Fields

    | Improve this Doc View Source

    m_config

    FacetsConfig passed to constructor.

    Declaration
    protected readonly FacetsConfig m_config
    Field Value
    Type Description
    FacetsConfig
    | 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

    SortedSetDocValuesReaderState passed to constructor; can be null.

    Declaration
    protected readonly SortedSetDocValuesReaderState m_state
    Field Value
    Type Description
    SortedSetDocValuesReaderState
    | Improve this Doc View Source

    m_taxoReader

    TaxonomyReader passed to constructor.

    Declaration
    protected readonly TaxonomyReader m_taxoReader
    Field Value
    Type Description
    TaxonomyReader

    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
    Type Name Description
    FacetsCollector drillDowns
    FacetsCollector[] drillSideways
    System.String[] drillSidewaysDims
    Returns
    Type Description
    Facets
    | 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
    Type Description
    DrillSidewaysResult
    | 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
    Type Description
    DrillSidewaysResult
    | 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
    Type Name Description
    DrillDownQuery query
    System.Int32 topN
    Returns
    Type Description
    DrillSidewaysResult
    | 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
    Type Description
    DrillSidewaysResult
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)