Re: search filter

2013-05-23 Thread Gora Mohanty
On 23 May 2013 11:19, Kamal Palei wrote: > HI Rafał Kuć > I tried fq=Salary:[5+TO+10]+OR+Salary:0 and as well as fq=Salary:[5 TO 10] > OR Salary:0 both, both the cases I retrieved 0 results. [...] Please try the suggested filter query from the Solr admin. interface, or by typing it directly into

Re: search filter

2013-05-22 Thread Kamal Palei
Looks I am getting exception as below May 22, 2013 10:52:11 PM org.apache.solr.common.SolrException log SEVERE: java.lang.NumberFormatException: For input string: "[3 TO 9] OR salary:0" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.L

Re: search filter

2013-05-22 Thread Kamal Palei
HI Rafał Kuć I tried fq=Salary:[5+TO+10]+OR+Salary:0 and as well as fq=Salary:[5 TO 10] OR Salary:0 both, both the cases I retrieved 0 results. I use drupal along with solr, my code looks as below. * if($include_0_salary == 1) { $conditions['fq'][0]

Re: search filter

2013-05-22 Thread Rafał Kuć
Hello! You can try sending a filter like this fq=Salary:[5+TO+10]+OR+Salary:0 It should work -- Regards, Rafał Kuć Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch > Dear All > Can I write a search filter for a field having a value in a range or a > specific value.