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
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
:
>
> 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
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)
. 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
-
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]