Class SearcherTaxonomyManager

    • Constructor Detail

      • SearcherTaxonomyManager

        public SearcherTaxonomyManager​(IndexWriter writer,
                                       boolean applyAllDeletes,
                                       SearcherFactory searcherFactory,
                                       DirectoryTaxonomyWriter taxoWriter)
                                throws java.io.IOException
        Creates near-real-time searcher and taxonomy reader from the corresponding writers.
        Throws:
        java.io.IOException
      • SearcherTaxonomyManager

        public SearcherTaxonomyManager​(Directory indexDir,
                                       Directory taxoDir,
                                       SearcherFactory searcherFactory)
                                throws java.io.IOException
        Creates search and taxonomy readers over the corresponding directories.

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

        Throws:
        java.io.IOException