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
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
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
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"
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
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 => {
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",