public abstract class SearchResource extends RestResource
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_SCROLL_BATCH_SIZE |
protected Searches |
searches |
configuration, userService| Constructor and Description |
|---|
SearchResource(Searches searches,
ClusterConfigService clusterConfigService,
DecoratorProcessor decoratorProcessor,
SearchExecutor searchExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> |
buildChunkedOutput(ScrollResult scroll) |
protected SearchResponse |
buildSearchResponse(SearchResult sr,
TimeRange timeRange,
boolean decorate,
Optional<String> streamId) |
protected SearchResponse |
buildSearchResponse(String query,
MessageList.Result results,
List<String> fieldList,
long tookMs,
TimeRange timeRange,
boolean decorate,
Optional<String> streamId) |
protected Sorting |
buildSorting(String sort) |
protected Sort |
buildSortOrder(String sort) |
void |
checkSearchPermission(String filter,
String searchPermission) |
protected Runnable |
createScrollChunkProducer(ScrollResult scroll,
org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> output) |
protected Search |
createSearch(String queryString,
int limit,
String filter,
List<String> fieldList,
Sort sorting,
TimeRange timeRange) |
protected SearchResponse |
extractSearchResponse(SearchJob searchJob,
String query,
boolean decorate,
List<String> fieldList,
TimeRange timeRange,
Optional<String> streamId) |
protected Set<IndexRangeSummary> |
indexRangeListToValueList(Set<IndexRange> indexRanges) |
protected List<String> |
parseFields(String fields) |
protected List<String> |
parseOptionalFields(String fields) |
protected TimeRange |
restrictTimeRange(TimeRange timeRange) |
protected List<ResultMessageSummary> |
resultMessageListtoValueList(List<ResultMessage> resultMessages) |
protected SearchResponse |
search(String query,
int limit,
String filter,
boolean decorate,
SearchUser searchUser,
List<String> fieldList,
Sort sorting,
TimeRange timeRange) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrintprotected static final String DEFAULT_SCROLL_BATCH_SIZE
protected final Searches searches
public SearchResource(Searches searches, ClusterConfigService clusterConfigService, DecoratorProcessor decoratorProcessor, SearchExecutor searchExecutor)
protected SearchResponse search(String query, int limit, String filter, boolean decorate, SearchUser searchUser, List<String> fieldList, Sort sorting, TimeRange timeRange)
protected SearchResponse buildSearchResponse(SearchResult sr, TimeRange timeRange, boolean decorate, Optional<String> streamId)
protected SearchResponse buildSearchResponse(String query, MessageList.Result results, List<String> fieldList, long tookMs, TimeRange timeRange, boolean decorate, Optional<String> streamId)
protected Set<IndexRangeSummary> indexRangeListToValueList(Set<IndexRange> indexRanges)
protected List<ResultMessageSummary> resultMessageListtoValueList(List<ResultMessage> resultMessages)
protected Search createSearch(String queryString, int limit, String filter, List<String> fieldList, Sort sorting, TimeRange timeRange)
protected SearchResponse extractSearchResponse(SearchJob searchJob, String query, boolean decorate, List<String> fieldList, TimeRange timeRange, Optional<String> streamId)
protected org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> buildChunkedOutput(ScrollResult scroll)
protected Runnable createScrollChunkProducer(ScrollResult scroll, org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> output)
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.