mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
570e22e7af
commit
d9ee7b24d3
|
@ -73,6 +73,10 @@ public class StandardRequestHandlerTest extends AbstractSolrTestCase {
|
||||||
,"//result/doc[3]/int[@name='id'][.='10']"
|
,"//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
|
// Using legacy ';' param
|
||||||
args.remove( CommonParams.SORT );
|
args.remove( CommonParams.SORT );
|
||||||
args.put( CommonParams.Q, "title:test; val_s desc" );
|
args.put( CommonParams.Q, "title:test; val_s desc" );
|
||||||
|
|
Loading…
Reference in New Issue