Show / Hide Table of Contents

    Class SearcherTaxonomyManager

    Manages near-real-time reopen of both an and a TaxonomyReader.

    NOTE: If you call ReplaceTaxonomy(Store.Directory) then you must open a new SearcherTaxonomyManager afterwards.

    Inheritance
    System.Object
    SearcherTaxonomyManager
    Namespace: Lucene.Net.Facet.Taxonomy
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class SearcherTaxonomyManager : ReferenceManager<SearcherTaxonomyManager.SearcherAndTaxonomy>

    Constructors

    | Improve this Doc View Source

    SearcherTaxonomyManager(Index.IndexWriter, Boolean, Search.SearcherFactory, DirectoryTaxonomyWriter)

    Creates near-real-time searcher and taxonomy reader from the corresponding writers.

    Declaration
    public SearcherTaxonomyManager(Index.IndexWriter writer, bool applyAllDeletes, Search.SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter)
    Parameters
    Type Name Description
    Index.IndexWriter writer
    System.Boolean applyAllDeletes
    Search.SearcherFactory searcherFactory
    DirectoryTaxonomyWriter taxoWriter
    | Improve this Doc View Source

    SearcherTaxonomyManager(Store.Directory, Store.Directory, Search.SearcherFactory)

    Creates search and taxonomy readers over the corresponding directories.

    NOTE: you should only use this constructor if you commit and call (on the ) in the same thread. Otherwise it could lead to an unsync'd and TaxonomyReader pair.

    Declaration
    public SearcherTaxonomyManager(Store.Directory indexDir, Store.Directory taxoDir, Search.SearcherFactory searcherFactory)
    Parameters
    Type Name Description
    Store.Directory indexDir
    Store.Directory taxoDir
    Search.SearcherFactory searcherFactory

    Methods

    | Improve this Doc View Source

    DecRef(SearcherTaxonomyManager.SearcherAndTaxonomy)

    Declaration
    protected override void DecRef(SearcherTaxonomyManager.SearcherAndTaxonomy ref)
    Parameters
    Type Name Description
    SearcherTaxonomyManager.SearcherAndTaxonomy ref
    | Improve this Doc View Source

    GetRefCount(SearcherTaxonomyManager.SearcherAndTaxonomy)

    Declaration
    protected override int GetRefCount(SearcherTaxonomyManager.SearcherAndTaxonomy reference)
    Parameters
    Type Name Description
    SearcherTaxonomyManager.SearcherAndTaxonomy reference
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    RefreshIfNeeded(SearcherTaxonomyManager.SearcherAndTaxonomy)

    Declaration
    protected override SearcherTaxonomyManager.SearcherAndTaxonomy RefreshIfNeeded(SearcherTaxonomyManager.SearcherAndTaxonomy ref)
    Parameters
    Type Name Description
    SearcherTaxonomyManager.SearcherAndTaxonomy ref
    Returns
    Type Description
    SearcherTaxonomyManager.SearcherAndTaxonomy
    | Improve this Doc View Source

    TryIncRef(SearcherTaxonomyManager.SearcherAndTaxonomy)

    Declaration
    protected override bool TryIncRef(SearcherTaxonomyManager.SearcherAndTaxonomy ref)
    Parameters
    Type Name Description
    SearcherTaxonomyManager.SearcherAndTaxonomy ref
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)