Package io.constructor.client
Class AutocompleteRequest
java.lang.Object
io.constructor.client.AutocompleteRequest
Constructor.io Autocomplete Request
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetQuery()
void
setFilters
(Map<String, List<String>> filters) void
void
setHiddenFields
(List<String> hiddenFields) void
void
setResultsPerSection
(Map<String, Integer> resultsPerSection) void
setVariationsMap
(VariationsMap variationsMap)
-
Constructor Details
-
AutocompleteRequest
Creates an autocomplete request- Parameters:
query
- the term to return suggestions for- Throws:
IllegalArgumentException
-
-
Method Details
-
setQuery
- Parameters:
query
- the query to set
-
getQuery
- Returns:
- the query
-
setResultsPerSection
- Parameters:
resultsPerSection
- the resultsPerSection to set
-
getResultsPerSection
- Returns:
- the resultsPerSection
-
setHiddenFields
- Parameters:
hiddenFields
- the hiddenFields to set
-
getHiddenFields
- Returns:
- the hidden fields
-
setFilters
- Parameters:
filters
- the filters to set
-
setFiltersPerSection
- Parameters:
filtersPerSection
- the filters to set
-
getFilters
- Returns:
- the filters
-
getFiltersPerSection
- Returns:
- the filtersPerSection
-
setVariationsMap
- Parameters:
variationsMap
- the variationsMap to set
-
getVariationsMap
- Returns:
- the variations map
-