Commas, dots, hyphens, slashes, and semicolons do not need to be "escaped", but spaces do.

But... be careful, because some analyzers will throw away all or most punctuation. You may have to resort to the white space analyzer to preserver punctuation characters, but you can add char filters to eliminate punctuation that you don't want to keep.

-- Jack Krupansky

-----Original Message----- From: Peter Schütt
Sent: Monday, May 06, 2013 9:34 AM
To: solr-user@lucene.apache.org
Subject: A Comma /aSpace in a Query argument

Hallo,

I want to use a comma as part of a query argument.

E.G.

q=myfield:aa,bb

and "aa,bb" is the value of the field.

Do I have to mask it?

And what is about a space in an argument

q=myfield:aa bb

and "aa bb" is the value of the field.

Thanks for any hint.

Ciao
Peter Schütt

Reply via email to