[ 
https://issues.apache.org/jira/browse/LUCENE-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600266#action_12600266
 ] 

Mark Miller commented on LUCENE-1026:
-------------------------------------

Bunch of new code coming on this tonight or tomorrow...I consider it basically 
the 1.0 version.

1. In my testing the ReentrantLock is much faster than the sync blocks under 
contention.
2. Logger.isLoggable is supposed to be faster than logging at a level thats not 
turned on.
3. The param is not for create, but for autoCommit. Create is called when you 
ask for an accessor that doesnt exist yet.
4. Why do you ask? I can't remember at the moment, but at first glance it looks 
like its unnecessary. It may have been done just because its done in 
getSearcher (where it is needed). Ill investigate further and possibly take it 
out. The new code fixes a bunch of issues with the Reader handling. The 
Searcher handling works great though. 

> Provide a simple way to concurrently access a Lucene index from multiple 
> threads
> --------------------------------------------------------------------------------
>
>                 Key: LUCENE-1026
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1026
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index, Search
>            Reporter: Mark Miller
>            Priority: Minor
>         Attachments: DefaultIndexAccessor.java, 
> DefaultMultiIndexAccessor.java, IndexAccessor-02.04.2008.zip, 
> IndexAccessor-02.07.2008.zip, IndexAccessor-02.28.2008.zip, 
> IndexAccessor-1.26.2008.zip, IndexAccessor-2.15.2008.zip, 
> IndexAccessor.04032008.zip, IndexAccessor.java, IndexAccessor.zip, 
> IndexAccessorFactory.java, MultiIndexAccessor.java, shai-IndexAccessor-2.zip, 
> shai-IndexAccessor.zip, shai-IndexAccessor3.zip, SimpleSearchServer.java, 
> StopWatch.java, TestIndexAccessor.java
>
>
> For building interactive indexes accessed through a network/internet 
> (multiple threads).
> This builds upon the LuceneIndexAccessor patch. That patch was not very 
> newbie friendly and did not properly handle MultiSearchers (or at the least 
> made it easy to get into trouble).
> This patch simplifies things and provides out of the box support for sharing 
> the IndexAccessors across threads. There is also a simple test class and 
> example SearchServer to get you started.
> Future revisions will be zipped.
> Works pretty solid as is, but could use the ability to warm new Searchers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to