lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-731) Simple attempt at adding and searching at the same time fails.
Date Tue, 28 Nov 2006 11:42:22 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-731?page=comments#action_12453888 ] 
            
Karl Wettin commented on LUCENE-731:
------------------------------------

> Gosh, it would be nice if there were a communications mechanism so that a call 
> to 'commit' on a writer just caused extant searchers to catch up.

If you don't want to handle that manually, take a look at issue 550. It contains a reader/writer/searcher
factory layer called Index. Also features a decorative layer for update notification (NotifiableIndex)
and a simple implementation of a AutofreshedSearcher that always is up to date with the index
given you use the factory methods of Index. It is however not as fancy as the searcher warming
available in Solr.

> Simple attempt at adding and searching at the same time fails.
> --------------------------------------------------------------
>
>                 Key: LUCENE-731
>                 URL: http://issues.apache.org/jira/browse/LUCENE-731
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.0.0
>         Environment: Windows XP, java 1.4.
>            Reporter: benson margulies
>         Attachments: LuceneBooleanQuery.java
>
>
> The FAQ says that you can index and lookup simultaneously. I tried what appeared to be
the simplest possible implementation of that, and the searcher never finds anything. I will
attach a junit test.
> If the code is working as designed, please consider this a bug in the FAQ or some other
doc that there is no pattern given for how to do this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message