Class TypeAheadRequest
java.lang.Object
com.broadleafcommerce.search.api.domain.typeahead.TypeAheadRequest
Represents the request data for a type-ahead request. Type ahead is used to provide search
suggestions including terms, products, categories, and such.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The configuration to use on this TypeAhead query.The list of filters to apply to this query.getQuery()
The TypeAhead query.Additional rule-based RSQL filters to apply to this query.int
hashCode()
boolean
isDebug()
If set to true, a string containing debug information about the query results will be returned.void
The configuration to use on this TypeAhead query.void
setDebug
(boolean debug) If set to true, a string containing debug information about the query results will be returned.void
setFilters
(List<Filter> filters) The list of filters to apply to this query.void
The TypeAhead query.void
setRuleFilters
(RuleFilter ruleFilters) Additional rule-based RSQL filters to apply to this query.toString()
-
Constructor Details
-
TypeAheadRequest
public TypeAheadRequest()
-
-
Method Details
-
getQuery
The TypeAhead query.- Returns:
- TypeAhead query
-
getConfig
The configuration to use on this TypeAhead query.- Returns:
- configuration to use on this TypeAhead query
-
getFilters
The list of filters to apply to this query.- Returns:
- The list of filters to apply to this query
-
getRuleFilters
Additional rule-based RSQL filters to apply to this query.- Returns:
- RSQL filters to apply to this query
-
isDebug
public boolean isDebug()If set to true, a string containing debug information about the query results will be returned.- Returns:
- whether debug information should be returned
-
setQuery
The TypeAhead query.- Parameters:
query
- TypeAhead query
-
setConfig
The configuration to use on this TypeAhead query.- Parameters:
config
- configuration to use on this TypeAhead query
-
setFilters
The list of filters to apply to this query.- Parameters:
filters
- The list of filters to apply to this query
-
setRuleFilters
Additional rule-based RSQL filters to apply to this query.- Parameters:
ruleFilters
- RSQL filters to apply to this query
-
setDebug
public void setDebug(boolean debug) If set to true, a string containing debug information about the query results will be returned.- Parameters:
debug
- whether debug information should be returned
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-