In that case, the following will work: q=+title:test +site_id:(23243455 2000045 3457676)
On Thu, May 14, 2009 at 5:35 PM, Radha C. <cra...@ceiindia.com> wrote: > Thanks for your reply. > > > > Yes by mistaken I added := in place of ":" . The title should match and the > site_id should match any of these 23243455 , 2000045, 3457676 . > > > > > > > > _____ > > From: Shalin Shekhar Mangar [mailto:shalinman...@gmail.com] > Sent: Thursday, May 14, 2009 5:43 PM > To: solr-user@lucene.apache.org; cra...@ceiindia.com > Subject: Re: Query syntax > > > > On Thu, May 14, 2009 at 5:20 PM, Radha C. <cra...@ceiindia.com> wrote: > > I need to search the multiple values from the same field. I am having the > following syntax > > I am thinking of the first option. Can anyone tell me which one is correct > syntax? > > Q=+title:=test +site_id:="200002 3000676 566644" > > Q=+title:=test +site_id:=200002 3000676 566644 > > Q=+title:=test +site_id:=200002 +site_id=:3000676 > > > > > None of the above. That ":=" is not a valid syntax. The request parameter > should be a lower cased "q". The "+" character signifies "must occur" > similar to a boolean AND. > > Should title:test must match? Should all of "200002", "3000676" etc be > present in site_id or just one match is alright? > -- > Regards, > Shalin Shekhar Mangar. > > -- Regards, Shalin Shekhar Mangar.