You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Laxmilal Menaria <lm...@chambal.com> on 2009/01/10 13:04:23 UTC

Search is not working with Lucene 2.4 while Indexing.

 Hi,

I have build an application which is using Lucene2.2. Now I upgraded to
Lucene2.4.

I faced one problem. I am not able to search the documents while indexing is
running. Same code is running with lucene2.2

So is there any change due to new format which don't allow to search in
indexes while indexwriter is open.

Please let me know.

-- 
Thanks,
Laxmilal menaria

http://www.bucketexplorer.com/
http://www.sdbexplorer.com/
http://www.chambal.com/

Re: Search is not working with Lucene 2.4 while Indexing.

Posted by Laxmilal Menaria <lm...@chambal.com>.
Thanks, Its working now.

On Sat, Jan 10, 2009 at 6:53 PM, Michael McCandless <
lucene@mikemccandless.com> wrote:

>
> Probably this is because autoCommit defaults to false for the new
> IndexWriter ctors.
>
> You have to periodically call IndexWriter.commit() to make the changes
> durable & visible to readers.
>
> Mike
>
>
> Laxmilal Menaria wrote:
>
>  Hi,
>>
>> I have build an application which is using Lucene2.2. Now I upgraded to
>> Lucene2.4.
>>
>> I faced one problem. I am not able to search the documents while indexing
>> is
>> running. Same code is running with lucene2.2
>>
>> So is there any change due to new format which don't allow to search in
>> indexes while indexwriter is open.
>>
>> Please let me know.
>>
>> --
>> Thanks,
>> Laxmilal menaria
>>
>> http://www.bucketexplorer.com/
>> http://www.sdbexplorer.com/
>> http://www.chambal.com/
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Thanks,
Laxmilal menaria

http://www.bucketexplorer.com/
http://www.sdbexplorer.com/
http://www.chambal.com/
http://www.minalyzer.com/

Re: Search is not working with Lucene 2.4 while Indexing.

Posted by Michael McCandless <lu...@mikemccandless.com>.
Probably this is because autoCommit defaults to false for the new  
IndexWriter ctors.

You have to periodically call IndexWriter.commit() to make the changes  
durable & visible to readers.

Mike

Laxmilal Menaria wrote:

> Hi,
>
> I have build an application which is using Lucene2.2. Now I upgraded  
> to
> Lucene2.4.
>
> I faced one problem. I am not able to search the documents while  
> indexing is
> running. Same code is running with lucene2.2
>
> So is there any change due to new format which don't allow to search  
> in
> indexes while indexwriter is open.
>
> Please let me know.
>
> -- 
> Thanks,
> Laxmilal menaria
>
> http://www.bucketexplorer.com/
> http://www.sdbexplorer.com/
> http://www.chambal.com/


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