Hi Shawn, your answer was the solution to the problem! It worked with the syntax in your example.
Thank you very much, great support! Florian -----Ursprüngliche Nachricht----- Von: Shawn Heisey <apa...@elyograg.org> Gesendet: Dienstag, 26. Juni 2018 15:35 An: solr-user@lucene.apache.org Betreff: Re: Adding tag to fq makes query return child docs instead of parent docs On 6/26/2018 7:22 AM, Florian Fankhauser wrote: > Now for some reason I want to exclude the above filter-query from a > facet-query. Therefore I need to add a tag to the filter-query: > > q={!tag=datefilter}{!parent which=doc_type_s:book} > acquisition_date_i:20180626 .... According to the documentation: https://lucene.apache.org/solr/guide/6_6/local-parameters-in-queries.html#LocalParametersinQueries-BasicSyntaxofLocalParameters You can't specify multiple localparams like that - it says "You may specify only one local parameters prefix per argument." I have no idea whether this is going to work, but here's what I would try: {!parent which=doc_type_s:book tag=datefilter} If this is not the proper syntax, I hope somebody who actually knows what's possible can speak up and help out. Thanks, Shawn