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 bbarani <bb...@gmail.com> on 2014/08/18 20:42:59 UTC
Need details on this query
Hi,
This might be a silly question..
I came across the below query online but I couldn't really understand the
bolded part. Can someone help me understanding this part of the query?
deviceType_:"Cell" OR deviceType_:"Prepaid" *OR (phone
-data_source_name:("Catalog" OR "Device How To - Interactive" OR "Device How
To - StepByStep"))*
Thanks,
Barani
--
View this message in context: http://lucene.472066.n3.nabble.com/Need-details-on-this-query-tp4153606.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Need details on this query
Posted by Erick Erickson <er...@gmail.com>.
OR (phone
-data_source_name:("Catalog" OR "Device How To - Interactive" OR "Device How
To - StepByStep"))
Just an OR clause that searches for all documents that have "phone" ( in the
default search field or multiple fields if its an edismax parser). Remove from
that set any documents with a data_source_name that contains any of the
three phrases:
"Catalog"
"Device How To - Interactive"
"Device How To - StepByStep"
and return all those documents in the query
HTH,
ErIck
On Mon, Aug 18, 2014 at 11:42 AM, bbarani <bb...@gmail.com> wrote:
> Hi,
>
> This might be a silly question..
>
> I came across the below query online but I couldn't really understand the
> bolded part. Can someone help me understanding this part of the query?
>
> deviceType_:"Cell" OR deviceType_:"Prepaid" *OR (phone
> -data_source_name:("Catalog" OR "Device How To - Interactive" OR "Device How
> To - StepByStep"))*
>
> Thanks,
> Barani
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Need-details-on-this-query-tp4153606.html
> Sent from the Solr - User mailing list archive at Nabble.com.