What query parser and release of Solr are you using?
There was a bug at one point where a fielded term immediately after a left
parenthesis was not handled properly.
If I recall, just insert a space after the left parenthesis.
Also, the dismax query parser does not support parentheses.
-- Jack Krupansky
-----Original Message-----
From: S L
Sent: Monday, August 12, 2013 12:48 AM
To: solr-user@lucene.apache.org
Subject: very simple boolean query not working
When I do this query:
q=catcode:CC001
I get a bunch of results. One of them looks like this:
<doc>
<str name="catcode">CC001</str>
<str name="start_url_title">Cooper, John</str>
</doc>
If I then do this query:
q=start_url_title:cooper
I also match the record above, as expected.
But, if I do this:
q=(catcode:CC001 AND start_url_title:cooper)
I get no results.
And, if I do this:
q=(catcode:CC001 OR start_url_title:cooper)
I also get no results.
schema.xml has this declaration of catcode:
<field name="catcode" type="text_ws" indexed="true" stored="true"/>
And, this for start_url_title:
<field name="start_url_title" type="text" stored="true" indexed="true"/>
What am I missing?
Thanks.
--
View this message in context:
http://lucene.472066.n3.nabble.com/very-simple-boolean-query-not-working-tp4083895.html
Sent from the Solr - User mailing list archive at Nabble.com.