Solr - Block join Parent query with many Children constraints

丶灬走出姿态 提交于 2019-11-30 07:45:56

For your use case you can just multiple block join filters:

q=*:*&
fq={!parent which="content_type:accommodation"}(+type:comment +comments:SolrCloud)&
fq={!parent which="content_type:accommodation"}(+type:publisher +address:England)

the first filter clouse will find which parent documents have a child which satisfies condition (+type:comment +comments:SolrCloud).

The second filter clouse will operate over subset of parent documents that satisfy the first filter. And it will find in this subset the parent documents that satisfy condition (+type:publisher +address:England).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!