Posts

Showing posts with the label sharding

Conversion of elasticsearch aggregation into code using java REST API is giving error

Conversion of elasticsearch aggregation into code using java REST API is giving error This is working fine in kibana console without any error POST rangedattr_4_1/_search { "size": 0, "aggs": { "user_field": { "terms": { "field": "FRONTLINK_OBJECT_GUID", "size": 10 }, "aggs": { "group_members": { "max": { "field": "MERGED_LINKS_TYPE" } }, "groupmember_bucket_filter": { "bucket_selector": { "buckets_path": { "groupmembers": "group_members" }, "script": "params.groupmembers %2==1" } }, "aggs":{ "top_hits": { "size": 1 } } } } } } But when I converted this into java code, like this: Map<String, String> bucketsPath...