Facet on child type

Hi guys,
first my gist: https://gist.github.com/2136557

I have ParentType and ChildType, the ParentType s defined as "_parent"
of ChildType.
I have ChildType.title field and ParentType.titles field.
ParentType.titles is array duplicating the ChildType.title.

I want a facet on the title field which I am currently doing on the
ParentType.titles but now I want to remove this field and define the
facet on the ChildType.title.

Unfortunately I couldn't do the "scope" property of the facet working

  • it is just ignored and the facet is always defined on the
    ParentType. If I define facet on "titles" property it works if I
    define facet on "title" property it doesn't.

Any idea what is wrong with my query?

Somewhere ot the group I found that this should be done with nested
documents but then I am not able to query directly the ChildType.

Any help is very appreciated.

Did someone tried facets on parent-child or nested documents?

On Mar 20, 5:09 pm, Ridvan Gyundogan ridva...@gmail.com wrote:

Hi guys,
first my gist:parent child facet using scope · GitHub

I have ParentType and ChildType, the ParentType s defined as "_parent"
of ChildType.
I have ChildType.title field and ParentType.titles field.
ParentType.titles is array duplicating the ChildType.title.

I want a facet on the title field which I am currently doing on the
ParentType.titles but now I want to remove this field and define the
facet on the ChildType.title.

Unfortunately I couldn't do the "scope" property of the facet working

  • it is just ignored and the facet is always defined on the
    ParentType. If I define facet on "titles" property it works if I
    define facet on "title" property it doesn't.

Any idea what is wrong with my query?

Somewhere ot the group I found that this should be done with nested
documents but then I am not able to query directly the ChildType.

Any help is very appreciated.

I didn't, but can you post here your query? Maybe we get lucky and
find out what's wrong with it :slight_smile:

On 21 mar., 09:05, Ridvan Gyundogan ridva...@gmail.com wrote:

Did someone tried facets on parent-child or nested documents?

On Mar 20, 5:09 pm, Ridvan Gyundogan ridva...@gmail.com wrote:

Hi guys,
first my gist:parent child facet using scope · GitHub

I have ParentType and ChildType, the ParentType s defined as "_parent"
of ChildType.
I have ChildType.title field and ParentType.titles field.
ParentType.titles is array duplicating the ChildType.title.

I want a facet on the title field which I am currently doing on the
ParentType.titles but now I want to remove this field and define the
facet on the ChildType.title.

Unfortunately I couldn't do the "scope" property of the facet working

  • it is just ignored and the facet is always defined on the
    ParentType. If I define facet on "titles" property it works if I
    define facet on "title" property it doesn't.

Any idea what is wrong with my query?

Somewhere ot the group I found that this should be done with nested
documents but then I am not able to query directly the ChildType.

Any help is very appreciated.

Hi Radu,
the query and the mappings are on the gist link.

On Mar 24, 2:54 pm, Radu Gheorghe radu0gheor...@gmail.com wrote:

I didn't, but can you post here your query? Maybe we get lucky and
find out what's wrong with it :slight_smile:

On 21 mar., 09:05,RidvanGyundoganridva...@gmail.com wrote:

Did someone tried facets on parent-child or nested documents?

On Mar 20, 5:09 pm,RidvanGyundoganridva...@gmail.com wrote:

Hi guys,
first my gist:parent child facet using scope · GitHub

I have ParentType and ChildType, the ParentType s defined as "_parent"
of ChildType.
I have ChildType.title field and ParentType.titles field.
ParentType.titles is array duplicating the ChildType.title.

I want a facet on the title field which I am currently doing on the
ParentType.titles but now I want to remove this field and define the
facet on the ChildType.title.

Unfortunately I couldn't do the "scope" property of the facet working

  • it is just ignored and the facet is always defined on the
    ParentType. If I define facet on "titles" property it works if I
    define facet on "title" property it doesn't.

Any idea what is wrong with my query?

Somewhere ot the group I found that this should be done with nested
documents but then I am not able to query directly the ChildType.

Any help is very appreciated.