Class DefaultDocumentStore.DefaultSearch
java.lang.Object
io.fluxzero.sdk.persisting.search.DefaultDocumentStore.DefaultSearch
- All Implemented Interfaces:
Search
- Enclosing class:
DefaultDocumentStore
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
Fields inherited from interface Search
defaultFetchSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFilters documents with timestamps before the given time.constraint(Constraint... constraints) Adds one or more custom constraints to the search using a logical AND.delete()Deletes all matching documents in the current search.Excludes specific fields from the returned documents.Returns facet statistics for the current search.<T> List<T> fetch(int maxSize) Fetches up to the given number of matching documents and deserializes them to the stored type.<T> List<T> Fetches up to the given number of documents and deserializes them to the specified type.fetchHistogram(int resolution, int maxSize) Computes a histogram for the timestamp distribution of matching documents.fetchHitStream(Integer maxSize, Class<T> type) fetchHitStream(Integer maxSize, Class<T> type, int fetchSize) Groups search results by field(s) and supports aggregations.includeOnly(String... paths) Includes only the specified fields in the returned documents.Filters documents within a specified time range.Moves all matching documents in the current search to the given collection.Filters documents with timestamps since the given start time.Skips the first N results.Sorts results by a field, with control over the sort direction.Sorts results by full-text relevance score.sortByTimestamp(boolean descending) Sorts results by timestamp.Streams raw search hits (document + metadata).streamHits(int fetchSize) Streams raw search hits (document + metadata).streamHits(Class<T> type) Streams raw search hits (document + metadata).streamHits(Class<T> type, int fetchSize) Streams raw search hits (document + metadata).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Search
aggregate, all, any, anyExist, atLeast, before, beforeLast, below, between, count, fetchAll, fetchAll, fetchFirst, fetchFirst, fetchFirstOrNull, fetchFirstOrNull, inLast, inPeriod, lookAhead, match, match, matchFacet, matchMetadata, not, query, since, sortBy, sortByTimestamp, stream, stream, stream, stream
-
Constructor Details
-
DefaultSearch
protected DefaultSearch()
-
-
Method Details
-
since
-
before
-
inPeriod
-
constraint
Description copied from interface:SearchAdds one or more custom constraints to the search using a logical AND.- Specified by:
constraintin interfaceSearch
-
sortByTimestamp
Description copied from interface:SearchSorts results by timestamp.- Specified by:
sortByTimestampin interfaceSearch- Parameters:
descending- whether to sort in descending order
-
sortByScore
Description copied from interface:SearchSorts results by full-text relevance score.- Specified by:
sortByScorein interfaceSearch
-
sortBy
-
exclude
-
includeOnly
Description copied from interface:SearchIncludes only the specified fields in the returned documents.- Specified by:
includeOnlyin interfaceSearch
-
skip
-
streamHits
Description copied from interface:SearchStreams raw search hits (document + metadata). Documents will typically be fetched in batches from the backing store. For thedefault implementation, the fetch size is 10,000.- Specified by:
streamHitsin interfaceSearch
-
streamHits
Description copied from interface:SearchStreams raw search hits (document + metadata). Documents will be fetched in batches of sizefetchSizefrom the backing store. For thedefault implementation, the fetch size is 10,000.- Specified by:
streamHitsin interfaceSearch
-
streamHits
Description copied from interface:SearchStreams raw search hits (document + metadata). Documents will be fetched in batches of sizefetchSizefrom the backing store. For thedefault implementation, the fetch size is 10,000.- Specified by:
streamHitsin interfaceSearch
-
streamHits
Description copied from interface:SearchStreams raw search hits (document + metadata). Documents will be fetched in batches of sizefetchSizefrom the backing store. For thedefault implementation, the fetch size is 10,000.- Specified by:
streamHitsin interfaceSearch
-
fetch
-
fetch
-
fetchHitStream
-
fetchHitStream
-
fetchHistogram
Description copied from interface:SearchComputes a histogram for the timestamp distribution of matching documents.- Specified by:
fetchHistogramin interfaceSearch
-
groupBy
Description copied from interface:SearchGroups search results by field(s) and supports aggregations. -
facetStats
Description copied from interface:SearchReturns facet statistics for the current search.- Specified by:
facetStatsin interfaceSearch
-
delete
Description copied from interface:SearchDeletes all matching documents in the current search. -
move
-