You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sivaprasad <si...@echidnainc.com> on 2011/11/23 10:07:34 UTC
Search on multiple fields is not working
Hi,
I have two indexed fields called profileId and tagName.When i issue a query
like q=profileId:"99964" OR profileId:"10076" OR tagName:"MUSIC" AND
"DESIGNER", i am getting only the results for tagName:"MUSIC" AND
"DESIGNER".The results are not containing profileId 99964 and 10076.
Can anybody tell what i am doing wrong?
Regards,
Siva
--
View this message in context: http://lucene.472066.n3.nabble.com/Search-on-multiple-fields-is-not-working-tp3530145p3530145.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Search on multiple fields is not working
Posted by Dmitry Kan <dm...@gmail.com>.
you probably wanted to query this:
q=profileId:"99964" OR profileId:"10076" OR tagName:("MUSIC" AND "DESIGNER")
otherwise SOLR matches "DESIGNER" against you default field (whatever it
is) and ANDs it with tagName:"MUSIC"
On Wed, Nov 23, 2011 at 11:07 AM, sivaprasad <si...@echidnainc.com>wrote:
> Hi,
>
> I have two indexed fields called profileId and tagName.When i issue a query
> like q=profileId:"99964" OR profileId:"10076" OR tagName:"MUSIC" AND
> "DESIGNER", i am getting only the results for tagName:"MUSIC" AND
> "DESIGNER".The results are not containing profileId 99964 and 10076.
>
> Can anybody tell what i am doing wrong?
>
> Regards,
> Siva
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Search-on-multiple-fields-is-not-working-tp3530145p3530145.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
Regards,
Dmitry Kan