Pregunta

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

¿Fue útil?

Solución

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" }
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top