Class FieldBooster
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.FieldBooster
-
- All Implemented Interfaces:
DocumentModifier
public class FieldBooster extends Object implements DocumentModifier
-
-
Constructor Summary
Constructors Constructor Description FieldBooster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTargetField(String fieldName)voidmodifyDocument(Individual individual, SearchInputDocument doc)Use the rules contained within this class to modify this search document, according to the characteristics of this individual.voidsetBoost(float boost)voidshutdown()Called to inform the DocumentModifier that the system is shutting down.StringtoString()voidvalidate()
-
-
-
Method Detail
-
addTargetField
public void addTargetField(String fieldName)
-
setBoost
public void setBoost(float boost)
-
validate
public void validate()
-
modifyDocument
public void modifyDocument(Individual individual, SearchInputDocument doc)
Description copied from interface:DocumentModifierUse the rules contained within this class to modify this search document, according to the characteristics of this individual.- Specified by:
modifyDocumentin interfaceDocumentModifier- Parameters:
individual- The individual that is being indexed. Will not be null.doc- The document as it stands so far. Will not be null.
-
shutdown
public void shutdown()
Description copied from interface:DocumentModifierCalled to inform the DocumentModifier that the system is shutting down.- Specified by:
shutdownin interfaceDocumentModifier
-
-