Mohammad Norouzi wrote:
Hi
you know, actually we dont indexed this field as Date. we always use
string
instead of Date type because we use both Hijri date and Gregorian date so
if
we put a Hijri date the DateField not work properly. that is why we index
such this field as String.
What DateFi
: I override that method and just remove the try/catch block in which you put
: codes with Date stuffs and now it works fine
:
: my overridden method only return new RangeQuery(...);
subclassing QueryParser to override getRangeQuery and eliminate the
special Date code sounds like it would work ju
Hi Erick,
I take a look at your source codes and I saw in the getRangeQuery() method
you put a DateFormat as this:
DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale);
...
Date d1 = df.parse(part1);
the last line of code doesnt work with our localed format. for example I put
the
I think you should search the archive for DateTools. There have been
very extensive discussions of this topic that will give you answers
far more quickly.
Dates are strings in Lucene. There's no magic here. You don't need
to override anything to get them to work, all you need to do is make
sure t
Hi
you know, actually we dont indexed this field as Date. we always use string
instead of Date type because we use both Hijri date and Gregorian date so if
we put a Hijri date the DateField not work properly. that is why we index
such this field as String.
as I read the javadoc for QueryParser, i
: > I even removed "/" from my query but still not working good.
: > Do I have to index dates issues without "/"?
: > now in the index I have 1978/05/05 should I change it to 19780505?
:
: Unless I'm mistaken (and it's been ages since I looked at the date stuff
: myself) this sort of thing only wo
Mohammad Norouzi wrote:
Hi again
I even removed "/" from my query but still not working good.
Do I have to index dates issues without "/"?
now in the index I have 1978/05/05 should I change it to 19780505?
Unless I'm mistaken (and it's been ages since I looked at the date stuff
myself) this so
Hi again
I even removed "/" from my query but still not working good.
Do I have to index dates issues without "/"?
now in the index I have 1978/05/05 should I change it to 19780505?
On 3/4/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote:
Hi
I want to search through lucene's index from a start d
Hi
I want to search through lucene's index from a start date to end date.
when I pass this query it works, say, admitDate:1978/05/05
however, when I use a range syntax it return no records:
admitDate:[1978/05/05 TO 2005/05/05]
I even tried this: admitDate:["1978/05/05" TO "2005/05/05"]
but still