public class FieldBooster extends Object implements DocumentModifier
| Constructor and Description |
|---|
FieldBooster() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTargetField(String fieldName) |
void |
modifyDocument(Individual individual,
SearchInputDocument doc)
Use the rules contained within this class to modify this search document,
according to the characteristics of this individual.
|
void |
setBoost(float boost) |
void |
shutdown()
Called to inform the DocumentModifier that the system is shutting down.
|
String |
toString() |
void |
validate() |
public void addTargetField(String fieldName)
public void setBoost(float boost)
public void validate()
public void modifyDocument(Individual individual, SearchInputDocument doc)
DocumentModifiermodifyDocument in interface DocumentModifierindividual - The individual that is being indexed. Will not be null.doc - The document as it stands so far. Will not be null.public void shutdown()
DocumentModifiershutdown in interface DocumentModifierCopyright © 2021. All rights reserved.