public class MoreSearch extends Searches
| Modifier and Type | Class and Description |
|---|---|
static class |
MoreSearch.Result |
static interface |
MoreSearch.ScrollCallback
Callback that receives message batches from
scrollQuery(String, Set, TimeRange, int, ScrollCallback). |
Searches.DateHistogramInterval, Searches.TermsStatsOrderAGG_CARDINALITY, AGG_EXTENDED_STATS, AGG_FILTER, AGG_HISTOGRAM, AGG_STATS, AGG_TERMS, AGG_TERMS_STATS, AGG_VALUE_COUNT, STACKED_TERMS_AGG_SEPARATOR| Constructor and Description |
|---|
MoreSearch(StreamService streamService,
Indices indices,
IndexRangeService indexRangeService,
IndexSetRegistry indexSetRegistry,
com.codahale.metrics.MetricRegistry metricRegistry,
ScrollResult.Factory scrollResultFactory,
io.searchbox.client.JestClient jestClient,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Set<Stream> |
loadStreams(Set<String> streamIds) |
void |
scrollQuery(String queryString,
Set<String> streams,
TimeRange timeRange,
int batchSize,
MoreSearch.ScrollCallback resultCallback)
This scrolls results for the given query, streams and time range from Elasticsearch.
|
count, count, createTermsBuilder, extractStreamId, fieldHistogram, fieldHistogram, fieldStats, fieldStats, fieldStats, histogram, histogram, scroll, search, search, search, terms, terms, terms, terms, termsHistogram, termsStats, termsStats, tookMsFromSearchResult, wrapInMultiSearch@Inject public MoreSearch(StreamService streamService, Indices indices, IndexRangeService indexRangeService, IndexSetRegistry indexSetRegistry, com.codahale.metrics.MetricRegistry metricRegistry, ScrollResult.Factory scrollResultFactory, io.searchbox.client.JestClient jestClient, Configuration configuration)
public void scrollQuery(String queryString, Set<String> streams, TimeRange timeRange, int batchSize, MoreSearch.ScrollCallback resultCallback) throws EventProcessorException
The search will continue until it is done, an error occurs or the search is stopped by setting the
continueScrolling boolean to false from the MoreSearch.ScrollCallback.
queryString - the search query stringstreams - the set of streams to search intimeRange - the time range for the searchbatchSize - the number of documents to retrieve at onceresultCallback - the callback that gets executed for each batchEventProcessorExceptionCopyright © 2012–2020 Graylog, Inc.. All rights reserved.