Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8459

Add SearcherTaxonomyManager constructor taking already opened readers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5, 8.0
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Today it either takes IndexWriter or Directory (and it opens its own DirectoryReader}}s) ... but I'd like to pass in my own reader so that e.g. I can use a {{FilterDirectoryReader.  This is useful e.g. for tracking fun low level stats like how many term dictionary lookups your queries are doing.

      My first attempt was to do my wrapping in SearcherFactory, but SearcherManager gets angry when you do that ("SearcherFactory must wrap exactly the provided reader").

        Attachments

        1. LUCENE-8459.patch
          3 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: