Wildcard search seems not working if a value contains space.
For example, if a value is "hello world" and if you do search hel* it does not return anything.
It works if I do hello* but anything that is partial string of hello is not working. Is there a way that can make it work if I search a substring of hello such as he*, hel*, hell*?
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
I updated in the post but I pasted here as well. Basically what I am looking for with this script is that it should be able to search any value that contains hel*. If value contains a space such as hello world, it should return the value but currently it is not returning anything.
What should be the analyzer in order to search partial substring of a value that may or may not contain spaces?
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
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.