Set multiple fields on Elastica Aggregation Range Filter ?

342 views
Skip to first unread message

ViPiN KuMaR PK

unread,
May 4, 2015, 9:05:03 AM5/4/15
to elastica-...@googlegroups.com
Hi Ruflin,

I need a help from you.

I have two fields in the search document such as salary_from and salary_to and want the aggregation of salary ranges such as 0 - 10 , 10 - 20, etc.

Is there any ways to set multiple fields to the Elastic Range Aggregation. (i can set one field by using setField function)

i just need to get the aggregated count of salary ranges or slabs by considering the two fields salary_from and salary_to.

Could you please help me.


Thanks

Vipin

ruflin

unread,
May 7, 2015, 3:54:12 PM5/7/15
to elastica-...@googlegroups.com, vipinkut...@gmail.com
As far as I can see from the documentation,only a field is suported: http://www.elastic.co/guide/en/elasticsearch/reference/1.5/search-aggregations-bucket-range-aggregation.html  Why not sue two different aggregations for this instead of trying to do it with one?
Reply all
Reply to author
Forward
0 new messages