Plugin datasource singleton

I have query parser plugin. This plugin also implements transport action.
Both: query parser and transport action should share the same data source
object (with cache).

Unfortunately when I run a query and parser is called I see one instance of
data source. When transport action is called I see another instance of data
I'd like to be able to see the same data source instance because transport
action is responsible for cache management. This cache should be used by
query parser

Plugin has implemented method 'indexModules'

public Collection<Class<? extends Module>> indexModules() {
    Collection<Class<? extends Module>> modules = newArrayList();


    return modules;

and CustomParserModule has implmeneted method conifugre

protected void configure() {

What am I doing wrong?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit