mirror of https://github.com/apache/lucene.git
SOLR-4121: add test for fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1429181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
450d3cf9d4
commit
68f9994ae8
|
@ -40,6 +40,7 @@ public class TestSolrQueryParser extends SolrTestCaseJ4 {
|
|||
assertU(adoc("id","10", "qqq_s","X"));
|
||||
assertU(adoc("id","11", "www_s","X"));
|
||||
assertU(adoc("id","12", "eee_s","X"));
|
||||
assertU(adoc("id","13", "eee_s","'balance'"));
|
||||
|
||||
assertU(commit());
|
||||
}
|
||||
|
@ -82,8 +83,14 @@ public class TestSolrQueryParser extends SolrTestCaseJ4 {
|
|||
assertJQ(req("q","qaz {!join from=www_s to=eee_s}{!join from=qqq_s to=www_s}id:10" )
|
||||
,"/response/docs/[0]/id=='12'"
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSolr4121() throws Exception {
|
||||
// This query doesn't match anything, testing
|
||||
// to make sure that SOLR-4121 is not a problem.
|
||||
assertJQ(req("q","eee_s:'balance'", "indent","true")
|
||||
,"/response/numFound==1"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue