in solrconfig of my solr 4.3 i have a userdefined requestHandler. i would like 
to use fq to force the following conditions:
   1: organisations is empty and roles is empty
   2: organisations contains one of the commadelimited list in variable $org
   3: roles contains one of the commadelimited list in variable $r
   4: rule 2 and 3

snipet of what i got (havent checked out if the is a "in" operator like in sql 
for the list value)

<lst name="defaults">
       <str name="echoParams">explicit</str>
       <int name="rows">10</int>
       <str name="defType">edismax</str>
           <str name="synonyms">true</str>
           <str name="qf">plain_text^10 editorschoice^200
                title^20 h_*^14 
                tags^10 thema^15 inhaltstyp^6 breadcrumb^6 doctype^10
                contentmanager^5 links^5
                last_modified^5 url^5
           </str>
           <str name="fq">(organisations='' roles='') or (organisations=$org 
roles=$r) or (organisations='' roles=$r) or (organisations=$org roles='')</str>
           <str name="bq">(expiration:[NOW TO *] OR (*:* 
-expiration:*))^6</str>  <!-- tested: now or newer or empty gets small boost -->
           <str name="bf">div(clicks,max(displays,1))^8</str> <!-- tested -->
           




Reply via email to