Re: Include parent or some parent attributes in children hits

2014-03-15 Thread Robin Boutros
I would guess that it's not possible, because children are just filtered by parents _id? On Saturday, March 15, 2014 5:03:45 PM UTC-4, Robin Boutros wrote: > > A quite simple question: I'm making a search request with an has_parent > filter. Is it possible to include the pa

Include parent or some parent attributes in children hits

2014-03-15 Thread Robin Boutros
A quite simple question: I'm making a search request with an has_parent filter. Is it possible to include the parent or some of its attributes to the result hits? Thanks. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from th

Re: External routing [76] and document path routing [khabar] mismatch

2014-03-15 Thread Robin Boutros
I actually managed to make it work, by providing the routing as a query parameter when indexing my items. On Thursday, March 13, 2014 10:36:24 PM UTC-4, Robin Boutros wrote: > > Something to add: > > When I index an item, I reference his parent with its id, not his account > nam

Re: External routing [76] and document path routing [khabar] mismatch

2014-03-13 Thread Robin Boutros
2014 10:30:12 PM UTC-4, Robin Boutros wrote: > > Hey, > > I have a parent/child relationship between Item and Player. > > { > "item": { > "_parent": { > "type": "player" > }, > "_routing"

External routing [76] and document path routing [khabar] mismatch

2014-03-13 Thread Robin Boutros
Hey, I have a parent/child relationship between Item and Player. { "item": { "_parent": { "type": "player" }, "_routing": { "required":true, "path":"account" }, "properties": { "account":{"type":"string","index":"not_analyz

Re: What's wrong with this query? (has_parent + bool)

2014-03-11 Thread Robin Boutros
Ok! I'll try it, thanks. Am I correct when I say that I should move things like `{ "term": { "verified": "true" } }` to filters? They will affect facet counts if they are inside a filtered query, right? { :filtered=> { :query => { :bool => { ... } }, :filter => {

What's wrong with this query? (has_parent + bool)

2014-03-11 Thread Robin Boutros
I get this error: Parse Failure [No parser for element [parent_type]] Here's the query: { :query=> {:bool=>{ :must=> [{:term=>{:verified=>{:term=>true}}}, {:term=>{:archetype=>{:term=>0}}}] }, :has_parent=> { :parent_type=>"player",