I'm trying very hard to combine an edismax query with a parent query, while generating facets on the children. Here are the queries:
{!edismax tag=top qf=$edisQf pf=$edisPf mm=$edisMm tie=$editTie v=$edisQ} {!parent tag=top filters=$childFq which=scope_s:parent v=$childQuery score=max} And here's an example of a facet: categories:{domain:{excludeTags:top,filter:["{!filters param=$childFq excludeTags=categories v=$childQuery}","{!child of=scope_s:parent filters=$fq}scope_s:parent"]},type:terms,field:category_ids_catalog70002_ss,limit:-1,facet:{parentsCount:"uniqueBlock(_root_)"},sort:"parentsCount desc"} I can either get properly sorted results back, or I can get facets, but not both at the same time. These give me the proper order of results, but all facets are empty: - +edismax +parent - {!boost b=query(edismax)}parent&fq=edismax This gives me the facet results, but the document order is arbitrary: - parent&fq=edismax Any help on how to fix the score without killing the facet generation would be greatly appreciated.