Try sort=score desc Looks like we need some better error checking and more friendly error messages.
-Yonik On 6/13/07, Jack L <[EMAIL PROTECTED]> wrote:
I'm using DisMaxRequestHandler and my queries seem to work fine. I intended to add an option to sort on a "date" type field. However, the moment I add sort, I get an exception (listed at the bottom of this email.) Then I tried with "sort=score" and the exception still happens. I'm sure it's due to my ignorance because sort must be a well tested parameter. I wonder what I'm doing wrong? The query with sort looks like this: http://localhost:8983/solr/select?rows=10&qt=dismax&wt=python&q=car&sort=score -- Best regards, Jack java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.solr.search.QueryParsing.parseSort(QueryParsing.java:189) at org.apache.solr.util.SolrPluginUtils.getSort(SolrPluginUtils.java:787) at org.apache.solr.request.DisMaxRequestHandler.handleRequest(DisMaxRequestHandler.java:338) at org.apache.solr.core.SolrCore.execute(SolrCore.java:595) at org.apache.solr.servlet.SolrServlet.doGet(SolrServlet.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)