elasticsearch - Regex on Term aggregations with phrase -
how can aggregate term filter based on phrase? field auto analyzed shingle analyzer.the below query works fine single keyword without whitespace when there whitespace fails. better way of doing it?
{ "query" : { "prefix" : { "auto" : "hello wo*" } }, "aggregations" : { "auto" : { "terms" : { "field" : "auto", "size" : 1000, "include" : "hello wo.*" } } } }
Comments
Post a Comment