Custom filter handler plugin

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.comhttps://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 elasticsearch+unsubscribe@googlegroups.com.
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.

thx Jörg,
like always very helpful answer,

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

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.comhttps://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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9bae1b8d-9c3d-467a-b0b2-2168260550dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.