Re: getCurrentVersion question

2006-09-09 Thread Otis Gospodnetic
Mag, check this (in IndexReader): /** * Returns the time the index in the named directory was last modified. * Do not use this to check whether the reader is still up-to-date, use * [EMAIL PROTECTED] #isCurrent()} instead. */ public static long lastModified(String directory) throws

getCurrentVersion question

2006-09-09 Thread Mag Gam
Hi All, I am trying to get the exact date when my index was created. I am assuming getCurrentVersion() is the right way of doing it. However, I am getting a result something like this: 1157817833085 According to the API reference, "Reads version number from segments files. The version number is

Re: Using SpanRegexQuery to search year like 200?

2006-09-09 Thread Erick Erickson
I've got to ask Why not just use a RangeQuery? Seems to be just what you want without the complications. Best Erick On 9/8/06, Luke Tan <[EMAIL PROTECTED]> wrote: Hi, Can this be use to search year 2000, 2001, 2002, ... 2009? SpanFirstQuery snq = new SpanFirstQuery(new SpanRegexQuery