In a plugin, you could either add query/filter classes per index creation, look at IndexQueryParserModuleTests
Or you could add programmatically query/filter classes to IndicesQueriesModule instance by using addQuery()/addFIlter() methods, which means for the whole node / all indices. Jörg On Sun, Mar 16, 2014 at 11:52 AM, Karol Gwaj <[email protected]> wrote: > Hi, > > is it possible, with current elasticsearch extensibility model, to create > custom filter handlers ? > > so i could do something like this: > { > "query" : > { > "filtered" : > { > "filter" : > { > * "my_custom_filter" : * > * {* > * ....* > * }* > }, > "query" : > { > "match_all" : {} > } > } > } > } > > and my 'handler' will be executed only for 'my_custom_filter' > so i can mix my custom filters with default elasticsearch filters > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH2_-j%2Bk4sQLXjfZ-Ss_vPcXQxAMagd2krifpP%2Bu_XWLw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
