Class FieldQuery
- java.lang.Object
-
- com.broadleafcommerce.search.api.domain.FieldQuery
-
- All Implemented Interfaces:
Serializable
public class FieldQuery extends Object implements Serializable
Associates aFieldVariantfor 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 longserialVersionUID
-
Constructor Summary
Constructors Constructor Description FieldQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)DoublegetBoost()The amount to boost this variant for this query type.StringgetQueryType()The query type which should be boosted on.StringgetVariantType()The field variant type which should be boosted on.inthashCode()voidsetBoost(Double boost)The amount to boost this variant for this query type.voidsetQueryType(String queryType)The query type which should be boosted on.voidsetVariantType(String variantType)The field variant type which should be boosted on.StringtoString()
-
-
-
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)
-
-