You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2014/08/27 11:50:57 UTC

[jira] [Updated] (LUCENE-5911) Make MemoryIndex thread-safe for queries

     [ https://issues.apache.org/jira/browse/LUCENE-5911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward updated LUCENE-5911:
----------------------------------

    Attachment: LUCENE-5911.patch

Patch, no tests yet (MemoryIndex seems a bit under-tested at the moment!), just changing a couple of fields in Info to final and making Info.sortTerms() synchronized.

> Make MemoryIndex thread-safe for queries
> ----------------------------------------
>
>                 Key: LUCENE-5911
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5911
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-5911.patch
>
>
> We want to be able to run multiple queries at once over a MemoryIndex in luwak (see https://github.com/flaxsearch/luwak/commit/49a8fba5764020c2f0e4dc29d80d93abb0231191), but this isn't possible with the current implementation.  However, looking at the code, it seems that it would be relatively simple to make MemoryIndex thread-safe for reads/queries.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org