Or simply enclosed the full term in quotes:
q=path:"my path"
Which is more properly encoded as:
q=path:%22my+path%22
-- Jack Krupansky
-----Original Message-----
From: Erick Erickson
Sent: Tuesday, September 23, 2014 11:02 PM
To: solr-user@lucene.apache.org
Subject: Re: query for space character in text field ...
You should be able to escape it with a backslash, as
search\ with\ spaces
Best,
Erick
On Tue, Sep 23, 2014 at 3:18 PM, Samuel Smith <sam...@groundlevel.ca> wrote:
Should I be able to search a text field in my index for any value that
contains white space?
The value in my “path” field contains an untokenized string (“that
contains spaces”).
I can do single character searches for other single special characters no
problem (q=path:*!*, or q=path:*-*), but no representation of space (%20,
“
“, or \s etc.) seem to work.
Thanks in advance for any suggestions! Sam
--
Samuel Smith