Elasticsearch wildcard matching on multiple fields Elasticsearch wildcard matching on multiple fields elasticsearch elasticsearch

Elasticsearch wildcard matching on multiple fields


I think what you need is:

{  "query": {    "bool": {      "should": [        {          "wildcard": {            "field1": "*"+"input"+"*"          }        },        {          "wildcard": {            "field2": "*"+"input"+"*"          }        }      ]    }  }}