public class Biasing
extends java.lang.Object
A biasing profile can be defined at query time.
Created by groupby on 1/12/16.| Constructor and Description |
|---|
Biasing() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Bias> |
getBiases() |
java.util.List<java.lang.String> |
getBringToTop() |
java.lang.Float |
getInfluence() |
java.util.List<NumericBoost> |
getNumericBoosts() |
java.util.List<java.lang.String> |
getRestrictToIds() |
boolean |
isAugmentBiases() |
Biasing |
setAugmentBiases(boolean augmentBiases)
Set whether the biases defined should override or augment the biases
defined in Command Center
|
Biasing |
setBiases(java.util.List<Bias> biases)
Set the list of biases
|
Biasing |
setBringToTop(java.util.List<java.lang.String> bringToTop)
A list of product IDs to bring to the top of the result set. |
Biasing |
setInfluence(java.lang.Float influence)
Set the influence of the biases. |
Biasing |
setNumericBoosts(java.util.List<NumericBoost> numericBoosts) |
Biasing |
setRestrictToIds(java.util.List<java.lang.String> restrictToIds)
A list of product IDs to restrict the result set. |
public java.util.List<java.lang.String> getRestrictToIds()
public Biasing setRestrictToIds(java.util.List<java.lang.String> restrictToIds)
A list of product IDs to restrict the result set. This list
will ensure that the search query and refinements only apply the list of products included.
restrictToIds - The list of productIds.public java.util.List<java.lang.String> getBringToTop()
public Biasing setBringToTop(java.util.List<java.lang.String> bringToTop)
A list of product IDs to bring to the top of the result set. This list
will ensure that the products are included in the result set and appear in the order
defined.
bringToTop - The list of productIds.public boolean isAugmentBiases()
public Biasing setAugmentBiases(boolean augmentBiases)
Set whether the biases defined should override or augment the biases
defined in Command Center
augmentBiases - True to augment biases, false otherwisepublic java.util.List<Bias> getBiases()
public Biasing setBiases(java.util.List<Bias> biases)
Set the list of biases
biases - The biasespublic java.lang.Float getInfluence()
public Biasing setInfluence(java.lang.Float influence)
Set the influence of the biases.
influence - The influence of the biases.public java.util.List<NumericBoost> getNumericBoosts()
public Biasing setNumericBoosts(java.util.List<NumericBoost> numericBoosts)
Copyright © 2013–2018 GroupBy Inc.. All rights reserved.