[
https://issues.apache.org/jira/browse/LUCENE-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464464
]
Mark Miller commented on LUCENE-390:
------------------------------------
I think that this provides more than IndexModifier does. For one it uses
reference counting, (IndexModifier does not, correct?) which makes it easy to
add Searcher warming. Second, it allows for more than just
IndexWriter/IndexReader concurrency.
There does appear to be a problem with the MultiSearcher support. The only way
I got it to work was to first get an IndexSearcher from each accessor and then
provide those searchers to get the MultiSearcher. After releasing the
MultiSearcher, it will correctly close the child IndexSearchers, but not
release them in respect to reference counting. I got around this by keeping the
IndexSearchers and the accessor they came from around in a hashmap and
releasing them myself...this required returning a multisearcher from the
accessor that had an overridden close method that does nothing (or else the
IndexSearchers are closed twice).
Other than that, this has been invaluable to me, and I don't believe
IndexModifier could duplicate what I am using it for. I have created a full
search server type app with this, similar to Solr (much less ambitious of
course <g>).
> Contribution: LuceneIndexAccessor
> ---------------------------------
>
> Key: LUCENE-390
> URL: https://issues.apache.org/jira/browse/LUCENE-390
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Affects Versions: unspecified
> Environment: Operating System: other
> Platform: Other
> Reporter: Maik Schreiber
> Assigned To: Lucene Developers
> Priority: Minor
> Attachments: lucene-indexaccess-0.2.0.zip
>
>
> As per this post:
> http://mail-archives.apache.org/mod_mbox/lucene-java-dev/200505.mbox/[EMAIL
> PROTECTED]
> I'm attaching the LuceneIndexAccessor source here. Copyright is now 2005 The
> Apache Software Foundation.
> Please note that it won't compile out of the box, but that should be fairly
> easy
> to fix using a CVS version of Lucene. Also it makes use of Log4J.
> I'm fine with moving the classes to any package you like.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]