Query_string, highlighting, and aggregations


(Nope) #1

I'm kind of doubting this is possible. Essentially I'm trying to search over all fields and multiple indexes. I can use highlighting to show fields where there's a match for my query. The results return and index the query was found in, and also the highlighted fields. I'd like to be able to roll this up in an aggregation of by index and highlighted fields - the number of returned results. Technically I could do this post query if the number of results were small, but I'm dealing with a lot of data.

GET _search
{
"query": {
"query_string": { "query": "Mike" }
},
"highlight": {
"fields": {
"*": {}
}
}
}

Here I'm getting back multiple indexes and various fields. Is there any way to aggregate them in ES?

Thanks


(system) #2

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