OK then it seems to be a problem with 5.6.4 or even any 5.6.x version. I will try it out.
Are there any other possibilities to do an exact search then?
OK then it seems to be a problem with 5.6.4 or even any 5.6.x version. I will try it out.
Are there any other possibilities to do an exact search then?
This works on 5.x:
GET /index/_search
{
"query": {
"match": {
"text.keyword": "basket of apples"
}
}
}
Ah yeah, I didn't try out the match-query, thank you very much! I just made a little twist and use the "multi_match" query because I need to enter multiple fields with wildcard in the fieldname, a simple example:
GET /_search
{
"query": {
"multi_match" : {
"query": "basket of apples",
"fields": [ "tex*.keyword"]
}
}
}
Works like a charm!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.