public class Bias
extends java.lang.Object
A bias specifies a field and value to match in a search. If a record matches the bias,
the position of the record in the page of results is adjusted based on the strength provided.
| Modifier and Type | Class and Description |
|---|---|
static class |
Bias.Strength |
| Constructor and Description |
|---|
Bias() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent() |
java.lang.String |
getName() |
Bias.Strength |
getStrength() |
Bias |
setContent(java.lang.String content)
Set the field name to bias on
|
Bias |
setName(java.lang.String name)
Set the field name to bias on
|
Bias |
setStrength(Bias.Strength strength) |
Bias |
setStrength(java.lang.String strength)
Set the field name to bias on
|
public java.lang.String getName()
public Bias setName(java.lang.String name)
Set the field name to bias on
name - The name of the field to bias onpublic java.lang.String getContent()
public Bias setContent(java.lang.String content)
Set the field name to bias on
content - The value of the field to bias onpublic Bias.Strength getStrength()
public Bias setStrength(java.lang.String strength)
Set the field name to bias on
strength - The strength of the bias, if appliedpublic Bias setStrength(Bias.Strength strength)
Copyright © 2013–2016 GroupBy Inc.. All rights reserved.