Class SelectQueryI18nDocumentModifier
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier
-
- edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryI18nDocumentModifier
-
- All Implemented Interfaces:
DocumentModifier,ConfigurationReader,ContextModelsUser
public class SelectQueryI18nDocumentModifier extends SelectQueryDocumentModifier implements DocumentModifier, ContextModelsUser, ConfigurationReader
A variation on SelectQueryDocumentModifier where the suffix of target field is defined. Multiple queries are performed for each of locales configured in runtime.properties Target field names are composed of locale + fieldSuffix. Each query should contain a ?uri variable, which will be replaced by the URI of the individual. All of the other result fields in each row of each query will be converted to strings and added to the field.
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier
label, queries, rdfService
-
-
Constructor Summary
Constructors Constructor Description SelectQueryI18nDocumentModifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Map<String,List<String>>>getTextForQueries(Individual ind)protected Map<String,List<String>>getTextForQuery(String query, Individual ind)voidmodifyDocument(Individual ind, SearchInputDocument doc)Use the rules contained within this class to modify this search document, according to the characteristics of this individual.voidsetConfigurationProperties(ConfigurationProperties config)voidsetTargetSuffix(String fieldSuffix)-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier
addQuery, addTargetField, addTypeRestriction, passesTypeRestrictions, setContextModels, setLabel, shutdown, toString, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.utils.configuration.ContextModelsUser
setContextModels
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier
shutdown
-
-
-
-
Method Detail
-
setTargetSuffix
public void setTargetSuffix(String fieldSuffix)
-
modifyDocument
public void modifyDocument(Individual ind, 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- Overrides:
modifyDocumentin classSelectQueryDocumentModifier- Parameters:
ind- The individual that is being indexed. Will not be null.doc- The document as it stands so far. Will not be null.
-
setConfigurationProperties
public void setConfigurationProperties(ConfigurationProperties config)
- Specified by:
setConfigurationPropertiesin interfaceConfigurationReader
-
-