Class FieldQuery
java.lang.Object
com.broadleafcommerce.search.api.domain.FieldQuery
- All Implemented Interfaces:
Serializable
Associates a
FieldVariant
for a field to make it searchable based on a particular query
type. For example, this could enable the String variant of the Product Name field to be searched
based on a word-level match. A boost amount can also be added, to weight the results based on
this query.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getBoost()
The amount to boost this variant for this query type.The query type which should be boosted on.The field variant type which should be boosted on.int
hashCode()
void
The amount to boost this variant for this query type.void
setQueryType
(String queryType) The query type which should be boosted on.void
setVariantType
(String variantType) The field variant type which should be boosted on.toString()
-
Constructor Details
-
FieldQuery
public FieldQuery()
-
-
Method Details
-
getQueryType
The query type which should be boosted on.- Returns:
- the query type which should be boosted on.
-
getVariantType
The field variant type which should be boosted on.- Returns:
- the field variant type which should be boosted on.
-
getBoost
The amount to boost this variant for this query type.- Returns:
- the amount to boost
-
setQueryType
The query type which should be boosted on.- Parameters:
queryType
- the query type which should be boosted on.
-
setVariantType
The field variant type which should be boosted on.- Parameters:
variantType
- the field variant type which should be boosted on.
-
setBoost
The amount to boost this variant for this query type.- Parameters:
boost
- the amount to boost
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-