I want to be able to search on special characters e.g. # and $ using the
query_string on multiple fields. I have used the default standard analyzer,
which caused some issues (es exceptions) when using for instance ~ in the
query_string. I have subsequently escaped the characters. The problem is
that some of the candidates in my index has for instance # in their name,
but I need to be able to query for something like n#ame* where name can be
e.g. n#meA, n#meB etc. Which analyzer is best suited for this scenario?
you may want to install the inquisitor plugin (or use the analyze API
directly) and play around with the existing analyzers in order to find out,
if an existing analyzer fits your need. Also you can create your own ones
pretty easy, see more at
I want to be able to search on special characters e.g. # and $ using the
query_string on multiple fields. I have used the default standard analyzer,
which caused some issues (es exceptions) when using for instance ~ in the
query_string. I have subsequently escaped the characters. The problem is
that some of the candidates in my index has for instance # in their name,
but I need to be able to query for something like n#ame* where name can be
e.g. n#meA, n#meB etc. Which analyzer is best suited for this scenario?
Hi Alexander thanks for the feedback, I have installed the plugin and it
works great. Thanks for the tip.
Juan
On Thursday, 22 August 2013 17:15:54 UTC+12, Juan Herbst wrote:
Hi,
I want to be able to search on special characters e.g. # and $ using the
query_string on multiple fields. I have used the default standard analyzer,
which caused some issues (es exceptions) when using for instance ~ in the
query_string. I have subsequently escaped the characters. The problem is
that some of the candidates in my index has for instance # in their name,
but I need to be able to query for something like n#ame* where name can be
e.g. n#meA, n#meB etc. Which analyzer is best suited for this scenario?
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.