It looks like (from the exception) that you missed a space. Perhaps your actual query was constructed like: String query = "width:[" + lowWidth + " TO" + highWidth +"]"; Where you *wanted* String query = "width:[" + lowWidth + " TO " + highWidth +"]";
> -----Original Message----- > From: Jack L [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 15, 2007 10:32 PM > To: solr-user@lucene.apache.org > Subject: Solr Query Language > > > Is the lucene query syntax available in solr? I saw this page > about lucene query syntax: > http://lucene.apache.org/java/docs/queryparsersyntax.html > > I tried "width:[0 TO 500]" and got an exception: > java.lang.NumberFormatException: For input string: "TO500" > at > java.lang.NumberFormatException.forInputString(NumberFormatExc > eption.java:48) > at java.lang.Integer.parseInt(Integer.java:447) > at java.lang.Integer.parseInt(Integer.java:497) > > If solr query language is different from that of Lucene, is > there a page that documents this? > > -- > Best regards, > Jack >