Hello
I can't figure out the problem at all. I have a field with a title. The name consists of a hyphen. This is: "usd-coin". I'm trying to search with this query:
In the end, it doesn't look for anything. But as soon as I leave "usd" - everything will be found. I need search accuracy. Can you please tell me how I can search specifically for the query "usd-coin"?
As far as I understand, the hyphen is reserved by the system. But how can this be bypassed?
Yes. You need to reindex the data of you want to use the right mapping for your use case.
Here, as a workaround, you could maybe use a phrase query. Although this might work, be aware that it's a workaround and that you'd better use the right mapping.
Be aware that runtime fields can impact the search performance in some cases, the best solution would indeed be a reindex, but maybe the runtime field can solve your problem quickly.
You can read more about runtime fields in the documentation.
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.