<div dir="ltr"><div><div><div><div><br></div>Dear All<br></div>I have indexed a salary field for all individuals. If I search without any conditions, I get all the records properly.<br><br>Now I need to search with conditions. Need to get records where salary is in a particular range.<br>
<br>I am trying a simple code as below.<br><br><b>$conditions[&#39;fq&#39;][0] = &#39;salary:[2 TO 6]&#39;;<br>$results = apachesolr_search_search_execute($keys, $conditions);<br></b><br></div>I get almost 90% records correct. But I got few records where salary value is 22.<br>
</div>Clearly 22 is not in the range of 2 to 6. Can somebody point out whats the wrong here.<br><div><div><br>In another case I tried to search as<br><br><b>$conditions[&#39;fq&#39;][0] = &#39;salary:[2 TO 10]&#39;;<br>$results = apachesolr_search_search_execute($keys, $conditions);<br>
</b><br></div><div>I did not get any record. I wanted to get records where salary is in between 2 to <b>10</b>. I do not know whats wrong here, mostly the presence of 10 is creating problem.<br><br></div><div>Somebody please help.., or at least point to documentation where I can refer and learn.<br>
</div><div><br></div><div>Best Regards<br></div><div>kamal<br></div><div><br><br><br></div></div></div>