On Tue, Sep 9, 2008 at 3:50 PM, Walter Underwood <[EMAIL PROTECTED]> wrote: > color:red AND color:green > > +color:red +color:green > > Either one works.
Just what I was looking for, thanks for the quick response and for helping a new user. hs > wunder > > On 9/9/08 3:47 PM, "hernan" <[EMAIL PROTECTED]> wrote: > >> Hey Solr users, >> >> My schema defines a field like this: >> >> <field name="color" type="string" indexed="true" required="true" >> multiValued="true"/> >> >> If I have a document indexed that has the following values for this >> field: ['red','green'] >> ...how do I write a query that says: "I want all documents that have >> color = 'red' AND color = 'green'? >> >> When I try: >> >> q=color:red+AND+green >> >> I get zero documents back. I've searched the Solr and Lucene docs and >> I can't find the right syntax although I have a hunch that this is a >> common query pattern. >> >> Please let me know if you've encountered this before and have a solution. >> >> thanks! >> hs > >