Escaping Special Characters

(from github.com/freestyle68)
Hi,

using Elasticsearch special character

+ - && || ! ( ) { } [ ] ^ " ~ * ? : \

Fess give the message: The given query is invalid.

For the standard user it’s too frustrating to insert the query between double quotes or insert the escape before.

Have you considered to escape this characters on Fess?

Thank you

(from github.com/marevol)
Since some of them are a query operator, Fess cannot decide whether it should be escaped.
So it’s difficult to do that… but any idea is welcome.

(from github.com/freestyle68)
By far the more frequently used are/ or : as date separators.

I know that : is a query operator.

And also / ?

I forgot to insert in the list / as a problematic character.

(from github.com/marevol)
/ is not an operator.
A solution might be to send an escaped query again if InvalidQueryException occurs…

(from github.com/freestyle68)
my question was too much broad: forget : that is an operator and focus on / only:

a query like

2/20/2015

give error, so the user must insert an escape before / or make the query

"2/20/2015"

It would be easier for the standard user insert the query simply as

2/20/2015

Is there a solution now for escaping the character / in a query?

For us, the slash is a typical sign when identifying documents. @freestyle68 gave date as an example.

@shinsuke So there isn’t a solution yet for searching with a slash?

No update. Fess is OSS. Any contribution is welcome.