Re: indexing documents from 1857

2005-09-28 Thread Luke Francl
Index your dates as strings (mmdd). This works better anyway because range searches work over a wider range of dates than when you index the full precision. On Wed, 2005-09-28 at 09:54, Renaud Richardet wrote: > Hello, > > From our understanding, Lucene uses the Unix Epoch (Jan 1, 1970) and

Re: QueryParser not thread-safe

2005-08-23 Thread Luke Francl
n doing the simplest possible thing, I would recommend creating a new parser for every thread using QueryParser.parse( String, String, Analyzer) until/unless you determine this is a performance bottleneck. Regards, Luke Francl - To

Re: Case-sensitive search

2005-08-18 Thread Luke Francl
: > > Query query = QueryParser.parse(line, "contents", analyzer); > > As for analyzer, I have tried both StardaAnalyzer and StopAnalyzer. You need to use the same analyzer for parsing queries as you do

Re: Indexes auto creation

2005-06-13 Thread Luke Francl
You may want to try using IndexReader's indexExists family of methods. They will tell you whether or not an index is there. http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#indexExists(org.apache.lucene.store.Directory)

Re: Best Practices for Distributing Lucene Indexing and Searching

2005-05-13 Thread Luke Francl
. Are there any problems known problems having a read-only index shared over SMB? Using a shared file system is preferable to me because it's easier, but if it's necessary I will write the code to copy the index to each node. Thanks, Luke Francl -

RE: IndexSearcher hanging on to old index files in Windows

2005-04-29 Thread Luke Francl
also implemented a reference counting scheme for IndexSearchers and it works well. Regards, Luke Francl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]