I am using the switch parser plugin as below. Whenever there is a value for
$latlong it will invoke $fq_bbox or else it will invoke $fq_simple.. Now I
need to add one more case whenever $where is not present in the query I need
to do call fq_all and ignore both fq_bbox / fq_simple. Can someone let me
know a way to implement that?

Thanks a lot for your response..

     <lst name="appends">
          <str name="fq">{!switch case=$fq_simple default=$fq_bbox
v=$latlong}</str>
        </lst>
        <lst name="invariants">
        <str name="fq_bbox">
        (
        _query_:"{!bbox pt=$latlong sfield=geo d=$dist}" OR
        _query_:"{!wp_optional df='addr_location_clean_i' qs=1 v=$where}" OR
        _query_:"{!wp_optional df='addr_location_i' qs=1 v=$where}"
        )
        </str>
        <str name="fq_simple">
        ( {!wp_optional df='addr_location_clean_i' qs=1 v=$where} OR
          {!wp_optional df='addr_location_i' qs=1 v=$where})
        </str>
        <str name="fq_all">
         _query_:"*:*"
        </str>
      </lst>



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-use-nested-switch-urgent-tp4075277.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to