custom filter handler plugin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

custom filter handler plugin

Karol Gwaj
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: custom filter handler plugin

joergprante@gmail.com
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 <[hidden email]> 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 [hidden email].
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.

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: custom filter handler plugin

Karol Gwaj
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="S2CknBIuH8QJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">ka...@...> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="S2CknBIuH8QJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/315ec396-634b-4198-b7eb-765a4bfb08c2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 [hidden email].
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.