Re: ranged and boolean query

2010-11-23 Thread Peter Blokland
hi, On Wed, Nov 17, 2010 at 04:39:00PM +0100, Peter Blokland wrote: > i'm using solr and am trying to limit my resultset to documents > that either have a publication date in the range * to now, or > have no publication date set at all (field is not present). > however, using this : > > (pubdat

Re: ranged and boolean query

2010-11-18 Thread Peter Blokland
hi, On Wed, Nov 17, 2010 at 05:00:04PM +0100, Peter Blokland wrote: >>> pubdate:([* TO NOW] OR (NOT *)) i've gone back to the examples provided with solr 1.4.1. the standard example has 19 documents, one of which has a date-field called 'incubationdate_dt'. so the query incubationdate_dt:[* T

Re: ranged and boolean query

2010-11-17 Thread Ken Stanley
On Wed, Nov 17, 2010 at 11:00 AM, Peter Blokland wrote: > hi, > > On Wed, Nov 17, 2010 at 10:54:48AM -0500, Ken Stanley wrote: > >> > pubdate:([* TO NOW] OR (NOT *)) > >> Instead of using NOT, try simply prefixing the field name with a minus >> sign. This tells SOLR to exclude the field. Otherwise

Re: ranged and boolean query

2010-11-17 Thread Peter Blokland
hi, On Wed, Nov 17, 2010 at 10:54:48AM -0500, Ken Stanley wrote: > > pubdate:([* TO NOW] OR (NOT *)) > Instead of using NOT, try simply prefixing the field name with a minus > sign. This tells SOLR to exclude the field. Otherwise, the word NOT > would be treated as a term, and would be applied

Re: ranged and boolean query

2010-11-17 Thread Ken Stanley
On Wed, Nov 17, 2010 at 10:39 AM, Peter Blokland wrote: > hi. > > i'm using solr and am trying to limit my resultset to documents > that either have a publication date in the range * to now, or > have no publication date set at all (field is not present). > however, using this : > > (pubdate:[* TO