How do I handle this? I'm not concerned whether these actually return
results. I'm content if the search ignores these. Or I can strip
them out. I just don't want an exception. If I strip them, how do I
know the full list of characters to strip?
I also tried escaping them (preceding with backslash), but it still
threw. Should I be applying some kind of encoding?
How do I handle this? I'm not concerned whether these actually return
results. I'm content if the search ignores these. Or I can strip
them out. I just don't want an exception. If I strip them, how do I
know the full list of characters to strip?
I also tried escaping them (preceding with backslash), but it still
threw. Should I be applying some kind of encoding?
You can escape them with a backslash, but you probably need \ in order
to overcome shell escaping.
Which API are you using? For the Perl API, I'm about to release a module
which filter query strings to remove constructs which can cause errors,
and to give the programmer some control over what is allowed through.
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.