Package org.graylog.plugins.views.search
Interface SearchType
- All Superinterfaces:
ContentPackable<SearchTypeEntity>
,Exportable
- All Known Implementing Classes:
EventList
,MessageList
,Pivot
,SearchType.Fallback
A search type represents parts of a query that generates a .
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static interface
Each search type should declare an implementation of its result conforming to this interface. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyExecutionContext
(SearchTypeExecutionState executionState) filter()
filters()
id()
mappedStreams
(EntityDescriptorIds entityDescriptorIds) name()
query()
streams()
type()
withFilter
(Filter filter) withFilters
(List<UsedSearchFilter> filters) withQuery
(BackendQuery query) Methods inherited from interface org.graylog2.contentpacks.ContentPackable
getContentPackPluginPackage, resolveNativeEntity, toContentPackEntity
Methods inherited from interface org.graylog.plugins.views.search.Exportable
isExportable
-
Field Details
-
TYPE_FIELD
- See Also:
-
FIELD_SEARCH_FILTERS
- See Also:
-
-
Method Details
-
type
String type() -
id
String id() -
name
-
filter
-
filters
List<UsedSearchFilter> filters() -
timerange
Optional<DerivedTimeRange> timerange() -
query
Optional<BackendQuery> query() -
streams
-
applyExecutionContext
-
withQuery
-
withFilter
-
effectiveStreams
-
withFilters
-
mappedStreams
-