SOLR-2894: tweak test to workarround SOLR-6386

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1618490 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2014-08-17 18:30:32 +00:00
parent 4f9bc97179
commit 343e65244e
1 changed files with 5 additions and 2 deletions

View File

@ -177,9 +177,12 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {
query("q","*:*", "rows",0, "facet","true", "facet.query","{!term f=foo_s}international\u00ff\u01ff\u2222\u3333");
// simple field facet on date fields
rsp = query("q","*:*", "rows",0, "facet","true", "facet.field", tdate_a);
rsp = query("q","*:*", "rows", 0,
"facet","true", "facet.limit", 1, // TODO: limit shouldn't be needed: SOLR-6386
"facet.field", tdate_a);
assertEquals(1, rsp.getFacetFields().size());
rsp = query("q","*:*", "rows",0, "facet","true",
rsp = query("q","*:*", "rows", 0,
"facet","true", "facet.limit", 1, // TODO: limit shouldn't be needed: SOLR-6386
"facet.field", tdate_b, "facet.field", tdate_a);
assertEquals(2, rsp.getFacetFields().size());