RE: Calling indexWriter.close() in web app

2007-07-11 Thread vcampa
Steinert, Fabian wrote: Hi, you do not need to writer.close() the IndexWriter at all to make changes visible. When IndexWriter is constructed with autoCommit = true flag set, calling writer.flush() will do. Ok, but what about the write.lock? IndexWriter releases its write.lock only

Re: Payloads and PhraseQuery

2007-07-11 Thread Peter Keegan
I'm now looking at using payloads with SpanNearQuery but I don't see any clear way of getting the payload(s) from the matching span terms. The term positions for the payloads seem to be buried beneath SpanCells in the NearSpansOrdered and NearSpansUnordered classes, which are not public. I'd be

Re: Payloads and PhraseQuery

2007-07-11 Thread Chris Hostetter
: I'm now looking at using payloads with SpanNearQuery but I don't see any : clear way of getting the payload(s) from the matching span terms. The term : positions for the payloads seem to be buried beneath SpanCells in the Isn't Spans.start() and Spans.end() what you are looking for? -Hoss

Re: Calling indexWriter.close() in web app

2007-07-11 Thread Mark Miller
The lock file is only for Writers. The lock file ensures that even two writers from two JVM's will not step on each other. Readers do not care about what the writers are doing or whether there is a lock file...even more so with the new generational files i believe. - Mark vcampa wrote: