public class FilterCommonRootSolrField extends SolrField
Based on CommonRootSolrField by sroseboo
combineNodes, converter, dedupe, defaultValue, disallowedValues, multivalue, name, splitOnString, substringAfter, substringBefore, valueSeparator, xpath, xPathExpression
Constructor and Description |
---|
FilterCommonRootSolrField(String name) |
Modifier and Type | Method and Description |
---|---|
List<SolrElementField> |
getFields(Document doc,
String identifier)
Prepare a Solr fields by extracting information from an input XML document, using the document processor configured
by Spring context files
|
FilterRootElement |
getRoot()
Get the root element that will be processed
|
void |
initExpression(XPath xpathObject)
Inialize the XPath expression that will be used to location XML nodes to process
|
void |
setRoot(FilterRootElement root)
Set the root element that will be processed
|
allowedValue, getCombineDelimiter, getConverter, getDefaultValue, getDisallwedValues, getName, getSplitOnString, getValueSeparator, getXpath, getxPathExpression, isCombineNodes, isMultivalue, isSubstringAfter, isSubstringBefore, processField, processNodeValue, setCombineDelimiter, setCombineNodes, setConverter, setDedupe, setDefaultValue, setDisallowedValues, setMultivalue, setName, setSplitOnString, setSubstringAfter, setSubstringBefore, setValueSeparator, setXpath, setxPathExpression
public FilterCommonRootSolrField(String name)
public List<SolrElementField> getFields(Document doc, String identifier) throws Exception
getFields
in interface ISolrField
getFields
in class SolrField
doc
- the document to processidentifier
- a specific identifier to processException
public void initExpression(XPath xpathObject)
initExpression
in interface ISolrField
initExpression
in class SolrField
xpathObject
- the XPath to initializepublic FilterRootElement getRoot()
public void setRoot(FilterRootElement root)
root
- the root element that will be processedCopyright © 2022. All rights reserved.