Class SearchDbService
java.lang.Object
org.graylog.plugins.views.search.db.SearchDbService
This class is a helper to implement a basic Mongojack-based database service that allows CRUD operations on a single DTO type.
Subclasses can add more sophisticated search methods by access the protected "db" property.
Indices can be added in the constructor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mongodb.client.MongoCollection<Search>protected final com.mongodb.client.MongoCollection<SearchSummary> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSearchDbService(MongoCollections mongoCollections, SearchRequirements.Factory searchRequirementsFactory, SearchFiltersReFetcher searchFiltersRefetcher) -
Method Summary
-
Field Details
-
db
-
summarydb
-
-
Constructor Details
-
SearchDbService
@Inject protected SearchDbService(MongoCollections mongoCollections, SearchRequirements.Factory searchRequirementsFactory, SearchFiltersReFetcher searchFiltersRefetcher)
-
-
Method Details
-
get
-
save
-
findByIds
-
streamAll
-
getExpiredSearches
-