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 karol@gwaj.me 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
On Sunday, March 16, 2014 12:46:58 PM UTC, Jörg Prante wrote:
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 <ka...@gwaj.me <javascript:>>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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.