Re: Write a plugin to query and aggregate results from multiple shards

2014-09-16 Thread joergpra...@gmail.com
If you want to use the filter parser plugin - I think you mean https://github.com/lmenezes/elasticsearch-terms-fetch-filter-plugin - then why don't you simply extend the plugin and build a new plugin from that codebase? >From what I understand is you somehow want to modify the search action core c

Re: Write a plugin to query and aggregate results from multiple shards

2014-09-15 Thread Sandeep Ramesh Khanzode
Appreciate the response as always. Please bear with my technical understanding of ES :) In the TransportSearchAction, the doExecute() delegates to one of the six different search types. It is inside the execute methods of those individual six actions, that they will look at the shards. Correct me

Re: Write a plugin to query and aggregate results from multiple shards

2014-09-15 Thread joergpra...@gmail.com
See the TransportSearchAction, in the doExecute() method, the SearchRequest is dispatched to several transport actions of the search types. Assuming you write your own custom action: the shard level request is ShardSearchRequest. It is easier to add information to SearchRequest, pass it down, and

Write a plugin to query and aggregate results from multiple shards

2014-09-14 Thread 'Sandeep Ramesh Khanzode' via elasticsearch
Hi, I am looking through the sources, and I am not sure whether this is possible. What I am looking to is the possibility to manipulate the SearchRequest object when it reaches the SearchShards level. Since I need to update the object with some value that is shard specific. For this, I was che