The "+" symbol means a clause of a boolean query that "must" be present, as
opposed to "should" (optionally) be present. This is equivalent to the "AND"
operator.
The "|" means "OR" for a disjunction maximum query to indicates the
alternatives - at least one of the alternatives must match.
-- Jack Krupansky
-----Original Message-----
From: nativecoder
Sent: Tuesday, May 6, 2014 4:44 AM
To: solr-user@lucene.apache.org
Subject: Re: Help to Understand a Solr Query
When I go through the debug results I found this. Can you explain me what
is the + and | sign means.
+(
+DisjunctionMaxQuery(
(
Exact_Field1:"samplestring1"^0.6 |
Exact_Field2:samplestring1^0.5 |
Field1:samplestring1^0.9 |
Field2:samplestring1
)
)
+DisjunctionMaxQuery(
(
Exact_Field1:samplestring2^0.6 |
Exact_Field2:samplestring2^0.5 |
Field1:samplestring2^0.9 |
Field2:samplestring2
)
)
)
On Mon, May 5, 2014 at 11:42 PM, Alexandre Rafalovitch [via Lucene] <
ml-node+s472066n4134841...@n3.nabble.com> wrote:
If you are looking for that level of understanding, you are best
enabling the debug flag. Then you will get a full breakdown of what
matched which field and why. Including scores, preferences, etc.
Possibly with debug.explained.structured enabled:
http://wiki.apache.org/solr/CommonQueryParameters#debug.explain.structured
Most people do not want to deep dive into debug info. But I am getting
the feeling this would be right where you want to go.
Regards,
Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr
proficiency
On Tue, May 6, 2014 at 1:47 AM, nativecoder <[hidden
email]<http://user/SendEmail.jtp?type=node&node=4134841&i=0>>
wrote:
> That answer helps a lot
>
> Where would the OR clause be ?
>
> (Exact_Field1:samplestring1 OR Exact_Field1:samplestring2) AND
> (Exact_Field2:samplestring1 OR Exact_Field2:samplestring2) AND
> (Field1:samplestring1 OR Field1:samplestring2) AND (Field2:samplestring1
> OR Field2:samplestring2)
>
> Please note that in my query it is an AND clause. I am trying to
understand
> where the AND fits in. To be more precise my query is as below
>
> q=samplestring1 AND samplestring2&defType: edismax&qf: Exact_Field1^1.0
> Exact_Field2^0.9 Field1^0.8 Field2^0.7&fl= Column1, Column2
>
>
>
>
> --
> View this message in context:
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134775.html
> Sent from the Solr - User mailing list archive at Nabble.com.
------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134841.html
To unsubscribe from Help to Understand a Solr Query, click
here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4134686&code=cm9tcm9tMTIzQGdtYWlsLmNvbXw0MTM0Njg2fDE3MDI4MTA4MQ==>
.
NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context:
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134887.html
Sent from the Solr - User mailing list archive at Nabble.com.