From d9ee7b24d37e60668e63cd74c52097452a4e1e46 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Wed, 7 Nov 2007 13:39:35 +0000 Subject: [PATCH] adding a simple test to make sure parsing 'sore desc' does not barf git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@592746 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/handler/StandardRequestHandlerTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/org/apache/solr/handler/StandardRequestHandlerTest.java b/src/test/org/apache/solr/handler/StandardRequestHandlerTest.java index 613d0188677..222fd3d3541 100644 --- a/src/test/org/apache/solr/handler/StandardRequestHandlerTest.java +++ b/src/test/org/apache/solr/handler/StandardRequestHandlerTest.java @@ -73,6 +73,10 @@ public class StandardRequestHandlerTest extends AbstractSolrTestCase { ,"//result/doc[3]/int[@name='id'][.='10']" ); + // Make sure score parsing works + args.put( CommonParams.SORT, "score desc" ); + assertQ("with sort param [desc]", req,"//*[@numFound='3']" ); + // Using legacy ';' param args.remove( CommonParams.SORT ); args.put( CommonParams.Q, "title:test; val_s desc" );