This works great but i would like to use lacal params "r" and "org" instead of hard-coded <str name="fq"> (*:* -organisations:[* TO *] -roles:[* TO *]) (+organisations:(150 42) +roles:(174 72))
I would like <str name="fq"> (*:* -organisations:[* TO *] -roles:[* TO *]) (+organisations:($org) +roles:($r)) Shouldn't the numbers be in the output below (parsed_filter_queries) and not $r and $org? I use this in my requesthandler and need it to be added as fq or query params without being able to be overriden, has anybody any idees? Oh and i use facets so fq has to be combinable. Debug query: <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">109</int> <lst name="params"> <str name="debugQuery">true</str> <str name="indent">true</str> <str name="r">267</str> <str name="q">yh_cug</str> <str name="_">1394533792473</str> <str name="wt">xml</str> </lst> ....... <arr name="filter_queries"> <str>{!q.op=OR} (*:* -organisations:["" TO *] -roles:["" TO *]) (+organisations:($org) +roles:($r)) (-organisations:["" TO *] +roles:($r)) (+organisations:($org) -roles:["" TO *])</str> </arr> <arr name="parsed_filter_queries"> <str>(MatchAllDocsQuery(*:*) -organisations:["" TO *] -roles:["" TO *]) (+organisations:$org +roles:$r) (-organisations:["" TO *] +roles:$r) (+organisations:$org -roles:["" TO *])</str> </arr>