public interface SearchType extends ContentPackable<SearchTypeEntity>, Exportable
result.
Plain queries only select a set of data but by themselves do not return any specific parts from it. Typical search types are aggregations across fields, a list of messages and other metadata.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SearchType.Fallback |
static interface |
SearchType.Result
Each search type should declare an implementation of its result conforming to this interface.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_FIELD |
| Modifier and Type | Method and Description |
|---|---|
SearchType |
applyExecutionContext(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.fasterxml.jackson.databind.JsonNode state) |
default Set<String> |
effectiveStreams() |
Filter |
filter() |
String |
id() |
default Set<String> |
mappedStreams(EntityDescriptorIds entityDescriptorIds) |
Optional<String> |
name() |
Optional<BackendQuery> |
query() |
Set<String> |
streams() |
Optional<DerivedTimeRange> |
timerange() |
String |
type() |
getContentPackPluginPackage, resolveNativeEntity, toContentPackEntityisExportablestatic final String TYPE_FIELD
String type()
String id()
Optional<DerivedTimeRange> timerange()
Optional<BackendQuery> query()
SearchType applyExecutionContext(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JsonNode state)
default Set<String> mappedStreams(EntityDescriptorIds entityDescriptorIds)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.