1

I have a field with mapping :

{
"type" : "text",
    "fields" : {
      "keyword" : {
        "type" : "keyword",
        "ignore_above" : 256
      }
    }
}

One of the document has value for the above field as "abcdef". What kind of ES query should be used to match this document when searching for "def"?

I have tried match, prefix queries.

3
  • 1
    have you tried wildcard query? see below link for more details. elastic.co/guide/en/elasticsearch/reference/current/… Commented Jul 18, 2019 at 11:19
  • nope, I will try. Is there any other type of query that would work? Other than wildcard or regex? Commented Jul 18, 2019 at 11:38
  • Could you add the JSON for the queries you have tried, please. Commented Jul 18, 2019 at 14:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.