Shouldn't the numbers be in the output below (parsed_filter_queries) and not
$r and $org? 

 

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))

 

I use this in my requesthandler under invariant because i need it to be
added to the query without being able to be overriden. Oh and i use facets
so fq has to be combinable. This should work or am i understanding it wrong?

 

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>

 

 

 

 

 

Reply via email to