Has Child / Has Parent

edit

Has Child / Has Parent

edit

See: * Has Child Query * Has Parent

// Has Child
QueryBuilder qb = hasChildQuery(
    "blog_tag",                     
    termQuery("tag","something")    
);

child type to query against

query (could be also a filter)

QueryBuilder qb = hasParentQuery(
    "blog",                         
    termQuery("tag","something")    
);

parent type to query against

query (could be also a filter)