Also note that some of the Solr request parameters are lists of fields where space is the delimiter and can NOT be escaped.

For example, the "fl" parameter uses both comma and space as delimiters, and the e/dismax field list parameters use space as the field delimiter.

-- Jack Krupansky

-----Original Message----- From: Aleksey Vorona
Sent: Wednesday, September 19, 2012 5:08 PM
To: solr-user@lucene.apache.org
Subject: Re: Search by field with the space in it

Thank you for that insight. I, myself, would've liked to remove the
spaces, but it is not possible in that particular project.

I see that I need to learn more about Lucene. Hopefully that will help
me avoid some of those headaches to come.

-- Aleksey

On 12-09-19 11:42 AM, Erick Erickson wrote:
I would _really_ recommend that you re-do your schema and
take spaces out of your field names. That may require that
you change your indexing program to not send spaces in dynamic
field names....

This is the kind of thing that causes endless headaches as time
goes forward.

You don't _have_ to, but I predict you'll regret if if you don't <G>.....

Best
Erick

On Wed, Sep 19, 2012 at 2:11 PM, Aleksey Vorona <avor...@ea.com> wrote:
On 12-09-19 11:04 AM, Ahmet Arslan wrote:
I have a field with space in its name (that is a dynamic
field). How can I execute search on it?

I tried "q=aattr_box%20%type_sc:super" and it did not work

The field name is "aattr_box type"
How about q=aattr_box\ type_sc:super

That works! Thank you!

Sidenote: of course I urlencode space.

-- Aleksey

Reply via email to