you could use the query_string query, which allows leading wildcard
searches within analyzed fields.
However, if you would like to use wildcards anywhere, you would probably
have to change over the concerned field to a multi_field, and store both an
analyzed as well as a not_analyzed version of the data (If I am not
mistaken - I am still fairly new to this).
You would then be able to issue a wildcard query, for instance, on the
not_analyzed version of the data:
chris
On Thursday, May 23, 2013 8:06:22 PM UTC+2, Ankit Jain wrote:
Hi All,
We would like to enable wildcard search on analyzed field.
As per my level of understanding, if analyzed is true, then wildcard
search would not work.
Please suggest some ways to achieve above usecase.
to add to this, you can run wildcard queries on any field that is indexed
not just analyzed fields.
simon
On Friday, May 24, 2013 8:47:03 AM UTC+2, Chris Kinsalb wrote:
Hi Ankit,
you could use the query_string query, which allows leading wildcard
searches within analyzed fields.
However, if you would like to use wildcards anywhere, you would probably
have to change over the concerned field to a multi_field, and store both an
analyzed as well as a not_analyzed version of the data (If I am not
mistaken - I am still fairly new to this).
You would then be able to issue a wildcard query, for instance, on the
not_analyzed version of the data: Elasticsearch Platform — Find real-time answers at scale | Elastic
chris
On Thursday, May 23, 2013 8:06:22 PM UTC+2, Ankit Jain wrote:
Hi All,
We would like to enable wildcard search on analyzed field.
As per my level of understanding, if analyzed is true, then wildcard
search would not work.
Please suggest some ways to achieve above usecase.
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.