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

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

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

    https://github.com/apache/metron/pull/702#discussion_r137763520
  
    --- Diff: 
metron-platform/metron-indexing/src/main/java/org/apache/metron/indexing/dao/search/GroupOrderType.java
 ---
    @@ -0,0 +1,39 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
    + * agreements.  See the NOTICE file distributed with this work for 
additional information regarding
    + * copyright ownership.  The ASF licenses this file to you under the 
Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with 
the License.  You may obtain
    + * a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software 
distributed under the License
    + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF 
ANY KIND, either express
    + * or implied. See the License for the specific language governing 
permissions and limitations under
    + * the License.
    + */
    +package org.apache.metron.indexing.dao.search;
    +
    +import com.fasterxml.jackson.annotation.JsonProperty;
    +
    +public enum GroupOrderType {
    +
    +  @JsonProperty("count")
    --- End diff --
    
    Is there a place we can document what the options for this are? Right now 
it doesn't look like it's exposed to people using the endpoint


> Add group by capabilities to search REST endpoint
> -------------------------------------------------
>
>                 Key: METRON-1114
>                 URL: https://issues.apache.org/jira/browse/METRON-1114
>             Project: Metron
>          Issue Type: New Feature
>            Reporter: Ryan Merriman
>            Assignee: Ryan Merriman
>
> We need a way to group search results.  Instead of all search results being 
> included in a single list, they would instead be grouped together based a 
> list of fields.  For example, if "ip_src_addr" was set to the groupBy field, 
> all results with the same value for that field would be in a group together.  
> All other search features would still apply to the groups including 
> filtering, sorting and result set size. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to