<div dir="ltr">Dear All<br>I am trying to write a search filter for a field having a value in a range or a specific value.<br><br>Say if I want to have a filter like<br>1. Select profiles with salary 5 to 10  or Salary 0.<br>
<br>So I expect profiles having salary either 0 , 5, 6, 7, 8, 9, 10 etc.<br><br>To do this, I have written code as below.<br><br><br>    $index = 0;<br>    if($include_0_salary == 1)<br>    {<br>        $conditions[&#39;fq&#39;][$index++] = &#39;salary:[&#39; . $min_ctc . &#39;+TO+&#39; .<br>
        $max_ctc . &#39;]+OR+salary:0&#39;;<br>    }<br>    else<br>    {<br>        $conditions[&#39;fq&#39;][$index++] = &#39;salary:[&#39; . $min_ctc . &#39; TO &#39; . $max_ctc . &#39;]&#39;;<br>    }<br><br>    $results = apachesolr_search_search_execute($keys, $conditions);<br>
    <br>When $include_0_salary is false, it gives me expected result. When $include_0_salary is true, solr server crashes.<br><br>I am sure, the way I am setting the fq param, is not proper. Has somebody done this previously, kindly help, suggest me whats the right syntax.<br>
<br>Thanks<br>kamal<br></div>