First of all, because query string is URL encoded both "+" and %20 on URL
are getting converted into spaces. But this is not what is causing the
problem. When search string is getting parsed, elasticsearch recognizes
space between "some" and "testnotes" as a separator between two different
field clauses. Because testnotes doesn't have a field associated with it,
the default _all field is getting used. So, your search is getting
translated into
firstName:John note:some _all:testnotes
It can be fixed by surrounding note some and testnotes with parenthesis (if
you want to find both words anywhere in the field note) or quites (if you
want to find the word "some" and "testnotes" next to each other):
firstName:John%20note:(some%20testnotes)
On Friday, April 19, 2013 2:01:11 PM UTC+2, woodwood wrote:
Hey
Trying to figure out how to use the default_operator using a URI request.
I'm searching for words / phrases in two different keys:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.