Hello ,
You cant write top_hits under nested aggregation.
While doing nested aggregation you need to deal with one abstract inner
nested document at once and not the actual document.
Putting top_hists here does not make sense.
If you can state your problem more clearly , we might be able to
Hi,
Am using fields with nested type, in the mappings I kept for column1 and
column2 as nested type fields..
I am using the following query to get the top hits:
GET partsfilter/partsfilter_type/_search
{
size: 10,
query : {
match : { description : abc }
},
aggs : {