Package com.loop54.model.request
Class AutoCompleteRequest
java.lang.Object
com.loop54.model.request.Request
com.loop54.model.request.AutoCompleteRequest
This class is used for performing auto-complete requests to the Loop54 e-commerce search engine.
-
Field Summary
FieldsModifier and TypeFieldDescriptionParameters for specifying how the auto-complete results should be retrieved.final StringThe partial query that the user has entered.Fields inherited from class com.loop54.model.request.Request
customData -
Constructor Summary
ConstructorsConstructorDescriptionAutoCompleteRequest(String query) The partial query that the user has entered. -
Method Summary
Modifier and TypeMethodDescriptionwithCustomData(String key, Object value) Chainable variant ofRequest.addCustomData(String, Object).withQueries(Consumer<QueryCollectionParameters> configurator) ConfiguresqueriesOptions, e.g.Methods inherited from class com.loop54.model.request.Request
addCustomData
-
Field Details
-
query
The partial query that the user has entered. -
queriesOptions
Parameters for specifying how the auto-complete results should be retrieved. Contains paging and sorting options.
-
-
Constructor Details
-
AutoCompleteRequest
The partial query that the user has entered.- Parameters:
query- the query to get auto complete suggestions for.
-
-
Method Details
-
withQueries
ConfiguresqueriesOptions, e.g.request.withQueries(q -> q.page(0, 10)).- Parameters:
configurator- Applied toqueriesOptions.- 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.
-