You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Rohit Gupta <ro...@in-rev.com> on 2011/07/11 20:40:40 UTC

!frange probelm

Hi,

I am trying to execute an !frange query, but I can't seem to get past the 
following error,

Bad Request

request: http://xyz.com:12397/solr/tw/select?q=(Organix)&fq={%21frange l=834925 
u=834925}id&fq={%21frange l=834345 u=834345}id&sort=createdOnGMTDate 
desc&start=0&rows=26&wt=javabin&version=2
at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:436)

at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:245)

at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)

I have tried URL encoding the query and which seems to run fine in a browser but 
not throught the application,

http://xyz.com:12397/solr/tw/select?q=(Organix)&fq={%21frange l=834925 
u=834925}id&fq={%21frange l=834345 u=834345}id&sort=createdOnGMTDate 
desc&start=0&rows=26&wt=javabin&version=2

I have even tried escaping the ! mark ,but doesnt help either

http://xyz.com:12397/solr/tw/select?q=(Organix)&fq={!frange l=834925 
u=834925}id&fq={!frange l=834345 u=834345}id&sort=createdOnGMTDate 
desc&start=0&rows=26&wt=javabin&version=2


Regards,
Rohit