lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (Created) (JIRA)" <>
Subject [jira] [Created] (LUCENE-3786) Create SearcherTaxoManager
Date Tue, 14 Feb 2012 15:45:59 GMT
Create SearcherTaxoManager

                 Key: LUCENE-3786
             Project: Lucene - Java
          Issue Type: New Feature
          Components: modules/facet
            Reporter: Shai Erera
            Assignee: Shai Erera
            Priority: Minor
             Fix For: 3.6, 4.0

If an application wants to use an IndexSearcher and TaxonomyReader in a SearcherManager-like
fashion, it cannot use a separate SearcherManager, and say a TaxonomyReaderManager, because
the IndexSearcher and TaxoReader instances need to be in sync. That is, the IS-TR pair must
match, or otherwise the category ordinals that are encoded in the search index might not match
the ones in the taxonomy index.

This can happen if someone reopens the IndexSearcher's IndexReader, but does not refresh the
TaxonomyReader, and the category ordinals that exist in the reopened IndexReader are not yet
visible to the TaxonomyReader instance.

I'd like to create a SearcherTaxoManager (which is a ReferenceManager) which manages an IndexSearcher
and TaxonomyReader pair. Then an application will call:
SearcherTaxoPair pair = manager.acquire();
try {
  IndexSearcher searcher = pair.searcher;
  TaxonomyReader taxoReader = pair.taxoReader;
  // do something with them
} finally {
  pair = null;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message