Package com.loop54.model.request
Class GetEntitiesRequest
java.lang.Object
com.loop54.model.request.Request
com.loop54.model.request.GetEntitiesRequest
This class is used to configure a GetEntities request to the Loop54 e-commerce search engine.
-
Field Summary
FieldsModifier and TypeFieldDescriptionParameters for specifying which entities to retrieve.Fields inherited from class com.loop54.model.request.Request
customData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithCustomData(String key, Object value) Chainable variant ofRequest.addCustomData(String, Object).withResults(Consumer<EntityCollectionParameters> configurator) ConfiguresresultsOptions, e.g.Methods inherited from class com.loop54.model.request.Request
addCustomData
-
Field Details
-
resultsOptions
Parameters for specifying which entities to retrieve. Such as filtering, faceting, sorting and paging. Note that filtering is advised when doing this request.
-
-
Constructor Details
-
GetEntitiesRequest
public GetEntitiesRequest()
-
-
Method Details
-
withResults
ConfiguresresultsOptions, e.g.request.withResults(r -> r.page(0, 20).distinctFacet("Category")).- Parameters:
configurator- Applied toresultsOptions.- Returns:
- This request, for chaining.
-
withCustomData
Description copied from class:RequestChainable variant ofRequest.addCustomData(String, Object). Subclasses override this to return their own type.- Overrides:
withCustomDatain classRequest- Parameters:
key- Key to set the data on. The keys will be treated as case-sensitive.value- Value to add to the custom data.- Returns:
- This request, for chaining.
-