Search in sources :

Example 6 with GroupRequest

use of org.apache.metron.indexing.dao.search.GroupRequest in project metron by apache.

the class SearchIntegrationTest method throws_exception_on_aggregation_queries_on_non_string_non_numeric_fields.

@Test
public void throws_exception_on_aggregation_queries_on_non_string_non_numeric_fields() throws Exception {
    thrown.expect(InvalidSearchException.class);
    thrown.expectMessage("Failed to execute search");
    GroupRequest request = JSONUtils.INSTANCE.load(badGroupQuery, GroupRequest.class);
    dao.group(request);
}
Also used : GroupRequest(org.apache.metron.indexing.dao.search.GroupRequest) Test(org.junit.Test)

Aggregations

GroupRequest (org.apache.metron.indexing.dao.search.GroupRequest)6 Test (org.junit.Test)6 GroupResponse (org.apache.metron.indexing.dao.search.GroupResponse)4 GroupResult (org.apache.metron.indexing.dao.search.GroupResult)4 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 List (java.util.List)1 Optional (java.util.Optional)1 ElasticsearchDao (org.apache.metron.elasticsearch.dao.ElasticsearchDao)1 AccessConfig (org.apache.metron.indexing.dao.AccessConfig)1 IndexDao (org.apache.metron.indexing.dao.IndexDao)1 FieldType (org.apache.metron.indexing.dao.search.FieldType)1 GetRequest (org.apache.metron.indexing.dao.search.GetRequest)1 Group (org.apache.metron.indexing.dao.search.Group)1 SearchRequest (org.apache.metron.indexing.dao.search.SearchRequest)1 Document (org.apache.metron.indexing.dao.update.Document)1