Re: IndexOutput writeVInt and others

2007-12-14 Thread Paul Elschot
I've copied writing and reading VInt's into SortedVIntList in LUCENE-584, and I added a comment there refering to the original code. A utility class on byte[] (or ByteBuffer) would be good to get rid of that copy. Regards, Paul Elschot On Saturday 15 December 2007 07:51:06 Shai Erera wrote: > Wh

Re: IndexOutput writeVInt and others

2007-12-14 Thread Shai Erera
Why not add IndexInput/Output methods to read/write to/from Input/OutputStream, ByteBuffer and/or byte[]? Isn't their logic general enough to make them utility classes? On Dec 14, 2007 9:55 AM, Doron Cohen <[EMAIL PROTECTED]> wrote: > On Dec 13, 2007 6:55 PM, Grant Ingersoll <[EMAIL PROTECTED]> w

Re: svn commit: r603856 - in /lucene/java/trunk/contrib/benchmark: ./ src/java/org/apache/lucene/benchmark/byTask/feeds/

2007-12-14 Thread Erik Hatcher
On Dec 13, 2007, at 12:58 AM, [EMAIL PROTECTED] wrote: +12/13/07 + LUCENE-1086: DocMakers setup for the "docs.dir" property + fixed to properly handle absolute paths. (Shai Erera via Doron Cohen) + I haven't looked at the details of this beyond the commit messages that went by, but if t

Re: Caching FuzzyQuery

2007-12-14 Thread Chris Hostetter
: Actually FuzzyQuery.rewrite() is pretty expensive so why not introduce a : caching decorator? A WeakHashMap with key==IndexReader and value==LRU of : BooleanQueries. Applications are certainly welcome to do this (there is nothing to stop you from calling rewrite before passing the query to y

Re: A Searcher with timeout

2007-12-14 Thread Grant Ingersoll
See https://issues.apache.org/jira/browse/LUCENE-997 On Dec 14, 2007, at 2:07 AM, Moreno Carullo wrote: Hi all, I'm going to implement a way to start a search on Lucene with a user- defined timeout. This is really useful when you have to deal with very strict SLA, and for what I have seen

Re: A Searcher with timeout

2007-12-14 Thread Sean Timm
See LUCENE-997 https://issues.apache.org/jira/browse/LUCENE-997 -Sean Moreno Carullo wrote: Hi all, I'm going to implement a way to start a search on Lucene with a user-defined timeout. This is really useful when you have to deal with very strict SLA, and for what I have seen from the source co

Re: Can changes on an index be visible to an open IndexSearcher without reopening it?

2007-12-14 Thread Scott Tiger
OK, I'll wait until they are supported in future release. (2.4?) 2007/12/10, Michael McCandless <[EMAIL PROTECTED]>: > > OK, excellent. I just wanted to make sure this thread is still > "alive" :) This is an important optimization to decrease cost of > opening & re-opening searchers. > > Mike >