RE: ranged query didn't work, got exception...

2011-06-19 Thread Hiller, Dean x66079
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,

Re: ranged query didn't work, got exception...

2011-06-19 Thread Michael Sokolov
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

ranged query didn't work, got exception...

2011-06-19 Thread Hiller, Dean x66079
"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