No parser for element [filtered]


(Ridvan Gyundogan) #1

Hello, I need a filtered query like described here
http://www.elasticsearch.org/guide/reference/query-dsl/filtered-query.html
but I get an error saying No parser for element [filtered].

This is the gist of my query and error: https://gist.github.com/1164853

I use ES version 17.4 .

Any help will be very much appreciated.


(Ridvan Gyundogan) #2

ok Ignore this it looks like a problem in elasticsearch-head.

On Aug 23, 2:04 pm, Ridvan Gyundogan ridva...@gmail.com wrote:

Hello, I need a filtered query like described herehttp://www.elasticsearch.org/guide/reference/query-dsl/filtered-query...
but I get an error saying No parser for element [filtered].

This is the gist of my query and error:https://gist.github.com/1164853

I use ES version 17.4 .

Any help will be very much appreciated.


(Clinton Gormley) #3

On Tue, 2011-08-23 at 04:04 -0700, Ridvan Gyundogan wrote:

Hello, I need a filtered query like described here
http://www.elasticsearch.org/guide/reference/query-dsl/filtered-query.html
but I get an error saying No parser for element [filtered].

This is the gist of my query and error: https://gist.github.com/1164853

the "filtered" clause should be wrapped in an outer "query" clause:

{ "query": { "filtered": { .... } }}

clint


(Shay Banon) #4

On Wed, Aug 24, 2011 at 10:51 AM, Clinton Gormley clint@traveljury.comwrote:

On Tue, 2011-08-23 at 04:04 -0700, Ridvan Gyundogan wrote:

Hello, I need a filtered query like described here

http://www.elasticsearch.org/guide/reference/query-dsl/filtered-query.html

but I get an error saying No parser for element [filtered].

This is the gist of my query and error: https://gist.github.com/1164853

the "filtered" clause should be wrapped in an outer "query" clause:

{ "query": { "filtered": { .... } }}

Only for the top level search API :slight_smile:

clint


(system) #5