URI encoding turns a space into a plus, then (maybe) Lucene takes that as a
space. Also you want a + in front of first_name.

A AND B     -> +first_name:joe++last_name:smith

B AND maybe A     -> first_name:joe++last_name:smith

Some of us need sample use cases to understand these things; documentation
with only technical definitions don't help much.

Lance

-----Original Message-----
From: Sunil Sarje [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2008 9:19 PM
To: solr-user@lucene.apache.org
Subject: Issue with Query Parsing '+' works as 'OR'

I am working with nightly build of Oct 17, 2008  and found the issue that
something wrong with Query Parsing; It takes + as OR

e.g. q=first_name:joe+last_name:smith is behaving as OR instead of AND.
Default operator is set to AND in schema.xml <solrQueryParser
defaultOperator="AND"/>


Is there any new configuration I need to put in place in order to get this
working ?

Thanks
-Sunil


Reply via email to