[ 
https://issues.apache.org/jira/browse/METRON-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16347308#comment-16347308
 ] 

ASF GitHub Bot commented on METRON-1419:
----------------------------------------

Github user merrimanr commented on a diff in the pull request:

    https://github.com/apache/metron/pull/911#discussion_r165141296
  
    --- Diff: 
metron-platform/metron-indexing/src/test/java/org/apache/metron/indexing/dao/SearchIntegrationTest.java
 ---
    @@ -655,83 +699,54 @@ public void disabled_facet_query_returns_null_count() 
throws Exception {
       }
     
       @Test
    -  public void exceeding_max_resulsts_throws_exception() throws Exception {
    +  public void missing_type_facet_query() throws Exception {
    +    SearchRequest request = JSONUtils.INSTANCE.load(missingTypeFacetQuery, 
SearchRequest.class);
    +    SearchResponse response = dao.search(request);
    +    Assert.assertEquals(10, response.getTotal());
    +
    +    Map<String, Map<String, Long>> facetCounts = response.getFacetCounts();
    +    Assert.assertEquals(1, facetCounts.size());
    +    Map<String, Long> snortFieldCounts = facetCounts.get("snort_field");
    +    Assert.assertEquals(5, snortFieldCounts.size());
    +    Assert.assertEquals(new Long(1), snortFieldCounts.get("50"));
    --- End diff --
    
    Done


> Create a SolrDao
> ----------------
>
>                 Key: METRON-1419
>                 URL: https://issues.apache.org/jira/browse/METRON-1419
>             Project: Metron
>          Issue Type: Sub-task
>            Reporter: Justin Leet
>            Assignee: Ryan Merriman
>            Priority: Major
>
> Create an implementation of the IndexDao for Solr. This will involve 
> implementing the various IndexDao methods using the SolrJ library and also 
> providing a SolrSearchIntegrationTest that extends SearchIntegrationTest 
> (similar to ElasticsearchSearchIntegrationTest). An integration test similar 
> to ElasticsearchUpdateIntegrationTest should also be included.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to