public class XPathField extends FieldDefinition
FieldDefinition.Type| Constructor and Description |
|---|
XPathField(String name,
String xpath,
org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.document.Field.Store isStored,
FieldDefinition.Type type)
create a new indexed field whose values are given by evaluating an XPath expression
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<?> |
getValues(XmlIndexer indexer)
The Solr XmlUpdateProcessor calls this.
|
String |
getXPath() |
getAnalyzer, getDefaultName, getFieldValues, getSolrFieldProperties, getType, isRenameable, isSingleValued, isStored, toStringpublic XPathField(String name, String xpath, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.document.Field.Store isStored, FieldDefinition.Type type)
name - the name of the field; although Lucene naming conventions are fairly loose,
it will go easier if you restrict yourself to [A-Za-z0-9_.-]xpath - the xpath to evaluateanalyzer - String-valued fields may be subject to further textual analysis, or pass null
if the field is not to be analyzed.isStored - whether the field values are stored (and may be retrieved)type - the type of data indexed by the fieldpublic String getXPath()
public Iterable<?> getValues(XmlIndexer indexer)
FieldDefinitiongetValues in class FieldDefinitionindexer - the indexer that holds the field valuesCopyright © 2013. All Rights Reserved.