public static class SearchResultCollection.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SearchResultCollection |
build() |
SearchResultCollection.Builder |
copy(SearchResultCollection model) |
SearchResultCollection.Builder |
count(Integer count)
Total number of items returned.
|
SearchResultCollection.Builder |
facetedSearchAggregation(List<FacetedSearchAggregation> facetedSearchAggregation)
Aggregations/facets on properties of data objects.
|
SearchResultCollection.Builder |
items(List<SearchResult> items)
Search result set.
|
SearchResultCollection.Builder |
query(String query)
String that data objects are to be searched with.
|
SearchResultCollection.Builder |
sortableFields(List<String> sortableFields)
A list of fields or properties used in the sorting of a search result.
|
public SearchResultCollection.Builder count(Integer count)
Total number of items returned.
count
- the value to setpublic SearchResultCollection.Builder items(List<SearchResult> items)
Search result set.
items
- the value to setpublic SearchResultCollection.Builder query(String query)
String that data objects are to be searched with.
query
- the value to setpublic SearchResultCollection.Builder facetedSearchAggregation(List<FacetedSearchAggregation> facetedSearchAggregation)
Aggregations/facets on properties of data objects.
facetedSearchAggregation
- the value to setpublic SearchResultCollection.Builder sortableFields(List<String> sortableFields)
A list of fields or properties used in the sorting of a search result.
sortableFields
- the value to setpublic SearchResultCollection build()
public SearchResultCollection.Builder copy(SearchResultCollection model)
Copyright © 2016–2024. All rights reserved.