--- On Thu, 3/3/11, Ahmet Arslan <iori...@yahoo.com> wrote: > From: Ahmet Arslan <iori...@yahoo.com> > Subject: Re: FilterQuery OR statement > To: solr-user@lucene.apache.org > Date: Thursday, March 3, 2011, 8:05 PM > > Trying to figure out how I can > run > > something similar to this for the fq > > parameter > > > > Field1 in ( 1, 2, 3 4 ) > > AND > > Field2 in ( 4, 5, 6, 7 ) > > > > I found some examples on the net that looked like > this: > > &fq=+field1:(1 2 3 > > 4) +field2(4 5 6 7) but that yields no results. > > May be your default operator is set to AND in schema.xml? > If yes, try using +field2(4 OR 5 OR 6 OR 7)
Actually you can use local params for that. http://wiki.apache.org/solr/LocalParams &fq={!q.op=OR df=field1}1 2 3 4&fq={!q.op=OR df=field2}4 5 6 7