lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [18/50] [abbrv] lucene-solr:apiv2: SOLR-9681:tests: add filter after block join test
Date Wed, 02 Nov 2016 23:59:15 GMT
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 <yonik@apache.org>
Authored: Sat Oct 29 17:34:05 2016 -0400
Committer: yonik <yonik@apache.org>
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} ] }" +
+            "}"
+    );
 
   }
 


Mime
View raw message