Re: Concurrent Indexing and Searching

2009-09-25 Thread Jake Mannix
Hi Klaus, If you've really still got 500MB of changes to your index since the last time you commit()'ed, then the call to commit() will be costly and take a while to complete. If in another thread, you reopen() an IndexReader pointing to that index, it will only see changes since the most recen

Re: Concurrent Indexing and Searching

2009-09-25 Thread Jason Rutherglen
It depends on whether or not the commit completes before the reopen. Lucene 2.9 adds an IndexWriter.getReader method that will always return with the latest modifications to your index. So if you're adding many documents, you can at anytime, call IW.getReader and you will be able to search the cha

Re: Search with whitespaces

2009-09-25 Thread Robert Muir
i might suggest the shingle package in lucene's contrib for this case. > like to do it for a general case, like trying to search the words joining > > the word before or after. > > > > How could I do that? Is there an analyzer which tokenize like that? > > > > Thank you > > > > > > Alex > > > > --

Concurrent Indexing and Searching

2009-09-25 Thread Klaus Teller
Hi, I've read that it is possible to update the index while another thread has a reader open. Now let's say the reader is trying to reopen the index (using its reopen method) and at the very same time, the write its committing its 500MB changes to the index. My question is, what happens in th

Re: Search with whitespaces

2009-09-25 Thread Alex Bredariol Grilo
Yes, but I'd like to do it in a generic way. I wouldn't like to search if my query contains the word "notebook". Thank you On Fri, Sep 25, 2009 at 2:33 PM, Zhang, Lisheng < lisheng.zh...@broadvision.com> wrote: > Hi, > > Simplest way is to add one condition (assuming field is f1): > > f1:notebook

RE: Search with whitespaces

2009-09-25 Thread Zhang, Lisheng
Hi, Simplest way is to add one condition (assuming field is f1): f1:notebook f1:"note book" which means (notebook OR "note book"), 2nd condition is phrase search. Best regards, Lisheng -Original Message- From: Alex Bredariol Grilo [mailto:abgr...@gmail.com] Sent: Friday, September 25,

Search with whitespaces

2009-09-25 Thread Alex Bredariol Grilo
Hi, I'm new to Lucene and I'm trying to do some stuff with Lucene but I have some problems. I have some documents, in which some contain the word notebook written separated, e.g. "some dummy words note book other dummy words". And I'd like that when I search notebook, these documents could be fou

The Release of Lucene 2.9

2009-09-25 Thread Mark Miller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello Lucene users, On behalf of the Lucene dev community (a growing community far larger than just the committers) I would like to announce the release of Lucene 2.9. While we generally try and maintain full backwards compatibility between major v

Re: Getting Payload data from BooleanQuery results

2009-09-25 Thread Grant Ingersoll
Yeah, it probably makes sense to add getSpans(IR, Filter) On Sep 24, 2009, at 5:51 PM, Christopher Tignor wrote: thanks for the tip. I don't see a way to integrate the QueryWrapperFilter (or any Filter) into SpanTermQuery.getSpans(indexReader) however. I can use a SpanQuery with an IndexSea