Class FieldQuery
- java.lang.Object
-
- com.broadleafcommerce.search.api.domain.FieldQuery
-
- All Implemented Interfaces:
Serializable
public class FieldQuery extends Object implements Serializable
Associates aFieldVariant
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description FieldQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Double
getBoost()
The amount to boost this variant for this query type.String
getQueryType()
The query type which should be boosted on.String
getVariantType()
The field variant type which should be boosted on.int
hashCode()
void
setBoost(Double boost)
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.String
toString()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQueryType
public String getQueryType()
The query type which should be boosted on.- Returns:
- the query type which should be boosted on.
-
getVariantType
public String getVariantType()
The field variant type which should be boosted on.- Returns:
- the field variant type which should be boosted on.
-
getBoost
public Double getBoost()
The amount to boost this variant for this query type.- Returns:
- the amount to boost
-
setQueryType
public void setQueryType(String queryType)
The query type which should be boosted on.- Parameters:
queryType
- the query type which should be boosted on.
-
setVariantType
public void setVariantType(String variantType)
The field variant type which should be boosted on.- Parameters:
variantType
- the field variant type which should be boosted on.
-
setBoost
public void setBoost(Double boost)
The amount to boost this variant for this query type.- Parameters:
boost
- the amount to boost
-
canEqual
protected boolean canEqual(Object other)
-
-