Question

I am getting a response if I search the details using wildCard characters in the elastic search for fieldMatch.Is this as expected?

Was it helpful?

Solution

Field queries are a version of query_string queries, which support using * and ? as wildcards. So, it is expected that the following will return results for "elasticsearch".

{
    "field" : { "engine" : "elastic*ch" }
}

{
    "field" : { "engine" : "elasticsea?ch" }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top