public interface ElementParser
| Modifier and Type | Method and Description |
|---|---|
boolean |
parse(org.dom4j.Element element,
String fieldName,
String parentFieldName,
org.apache.solr.common.SolrInputDocument solrDoc,
ElementParserService parserService)
Parses the given element, generating one or more Solr fields and adding them to the given document.
|
boolean parse(org.dom4j.Element element,
String fieldName,
String parentFieldName,
org.apache.solr.common.SolrInputDocument solrDoc,
ElementParserService parserService)
element - the element to parsefieldName - the field name that should be used for the main Solr field (by default will be the
path of the element in the tree plus the element name)parentFieldName - the field name of the parent elementsolrDoc - the Solr document to add the generated fieldsparserService - the parser service used normally to parse sub elementsCopyright © 2018 CrafterCMS. All rights reserved.