Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7B63C200BDA for ; Thu, 3 Nov 2016 00:59:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7A3F6160B0B; Wed, 2 Nov 2016 23:59:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A36F8160AFB for ; Thu, 3 Nov 2016 00:59:03 +0100 (CET) Received: (qmail 27586 invoked by uid 500); 2 Nov 2016 23:58:59 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 26849 invoked by uid 99); 2 Nov 2016 23:58:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 23:58:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D458CDFA3E; Wed, 2 Nov 2016 23:58:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sarowe@apache.org To: commits@lucene.apache.org Date: Wed, 02 Nov 2016 23:59:15 -0000 Message-Id: <592bf1eefe2f4f14b1ad41617ddbb2b4@git.apache.org> In-Reply-To: <882c69afbfe44cd0a21c0321a7402d0a@git.apache.org> References: <882c69afbfe44cd0a21c0321a7402d0a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [18/50] [abbrv] lucene-solr:apiv2: SOLR-9681:tests: add filter after block join test archived-at: Wed, 02 Nov 2016 23:59:04 -0000 SOLR-9681:tests: add filter after block join test Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d8d3a8b9 Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d8d3a8b9 Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d8d3a8b9 Branch: refs/heads/apiv2 Commit: d8d3a8b9b8e7345c4a02a62f7e321c4e9a2440bf Parents: 650276e Author: yonik Authored: Sat Oct 29 17:34:05 2016 -0400 Committer: yonik Committed: Sat Oct 29 17:34:05 2016 -0400 ---------------------------------------------------------------------- .../apache/solr/search/facet/TestJsonFacets.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d8d3a8b9/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java ---------------------------------------------------------------------- diff --git a/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java b/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java index eafa134..57e3ed1 100644 --- a/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java +++ b/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java @@ -1416,6 +1416,22 @@ public class TestJsonFacets extends SolrTestCaseHS { "}" ); + // test filter after block join + client.testJQ(params(p, "q", "*:*" + , "json.facet", "{ " + + "pages1:{type:terms, field:v_t, domain:{blockChildren:'type_s:book'}, filter:'*:*' }" + + ",pages2:{type:terms, field:v_t, domain:{blockChildren:'type_s:book'}, filter:'-id:3.1' }" + + ",books:{type:terms, field:v_t, domain:{blockParent:'type_s:book'}, filter:'*:*' }" + + ",books2:{type:terms, field:v_t, domain:{blockParent:'type_s:book'}, filter:'id:1' }" + + "}" + ) + , "facets=={ count:10" + + ", pages1:{ buckets:[ {val:y,count:4},{val:x,count:3},{val:z,count:3} ] }" + + ", pages2:{ buckets:[ {val:y,count:4},{val:z,count:3},{val:x,count:2} ] }" + + ", books:{ buckets:[ {val:q,count:3},{val:e,count:2},{val:w,count:2} ] }" + + ", books2:{ buckets:[ {val:q,count:1} ] }" + + "}" + ); }