Do I need to lower case my searches before I send them to Elasticsearch? I
would think for text and wildcard queries Elasticsearch search_analyzer
would take care of it.
Here is a test that searches for "TR" in uppercase and does not get results.
Lowercasing the query by hand seems to work but the search_analyzer should
have been applied in a consistent way.
According to the docs, a wildcard query is not analyzed:
Since your terms are analyzed with a standard analyzer (lower cased),
your query must also be lower-cased.
--
Ivan
On Thu, Aug 25, 2011 at 10:46 AM, Christopher Burkey cburkey@openedit.org wrote:
Do I need to lower case my searches before I send them to Elasticsearch? I
would think for text and wildcard queries Elasticsearch search_analyzer
would take care of it.
Here is a test that searches for "TR" in uppercase and does not get results.
Lowercasing the query by hand seems to work but the search_analyzer should
have been applied in a consistent way.
Since your terms are analyzed with a standard analyzer (lower cased),
your query must also be lower-cased.
--
Ivan
On Thu, Aug 25, 2011 at 10:46 AM, Christopher Burkey cburkey@openedit.org wrote:
Do I need to lower case my searches before I send them to Elasticsearch?
I
would think for text and wildcard queries Elasticsearch search_analyzer
would take care of it.
Here is a test that searches for "TR" in uppercase and does not get
results.
Lowercasing the query by hand seems to work but the search_analyzer
should
have been applied in a consistent way.
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.