title, Field.Store.NO,
Field.Index.NOT_ANALYZED));
document.add(new Field("date", dateTxt, Field.Store.NO,
Field.Index.NOT_ANALYZED));
log.info("created doc=" + dateTxt + " entry+" + url);
document.add(new Field("url", url,
I think you need
field:[20020101 TO *]
although the "*" option isn't available in some versions (pre 3.1?) and
you just have to supply a big value:
field:[20020101 TO ]
-Mike
On 6/19/2011 6:18 PM, Hiller, Dean x66079 wrote:
"here you can simply go for field:[20020101 TO ] and leave
"here you can simply go for field:[20020101 TO ] and leave the end
blank. If you want to do fast numeric searches you should use
NumericRangeQuery instead."
I tried that and got an exception...
I need to do something like String queryStr = "author:dean and date:[" + date1
+ " TO ]"; so can I do