Match query always result in exact match not "contains" or start with

Hi ,

i have data uploaded in elastic search as below , if try to query for "vendor" , name having this text in them, it does not yield any result. But if i give exact name then it fetches the record.
please help

ElasticSearch ver: 6.6.0
Kibana: 6.6.0
OS: Windows 10 Pro

other details are as below

My code to query is as below
image

mapping info as below

{
  "mapping": {
    "vendor": {
      "properties": {
        "address": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "email": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "name": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "phone": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        }
      }
    }
  }
}

image

mapping was created as below
image
input
Vendor

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.