public interface ElementParser<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
parse(org.dom4j.Element element,
String fieldName,
String parentFieldName,
T doc,
ElementParserService<T> 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,
T doc,
ElementParserService<T> 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 elementdoc - the document to add the generated fieldsparserService - the parser service used normally to parse sub elementsCopyright © 2021 CrafterCMS. All rights reserved.