public class SolrDocumentBuilderImpl extends AbstractDocumentBuilder<org.apache.solr.common.SolrInputDocument>
<page> <file-name>index.xml</file-name> <showAboutAuthor>false</showAboutAuthor> <showSearchBox>true</showSearchBox> </page>into a Solr Document:
<add> <doc> <field name="file-name">index.xml</field> <field name="showAboutAuthor">false</field> <field name="showSearchBox">true</field> </doc> </add>The Solr document is represent in Java as object, which then can be sent to the server.
copyFields, DEFAULT_ID_FIELD_NAME, DEFAULT_LOCAL_ID_FIELD_NAME, DEFAULT_PUBLISHING_DATE_ALT_FIELD_NAME, DEFAULT_PUBLISHING_DATE_FIELD_NAME, DEFAULT_ROOT_ID_FIELD_NAME, DEFAULT_SITE_FIELD_NAME, fieldValueConverter, idFieldName, localIdFieldName, parserService, postProcessors, publishingDateAltFieldName, publishingDateFieldName, rootIdFieldName, siteFieldName
Constructor and Description |
---|
SolrDocumentBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addField(org.apache.solr.common.SolrInputDocument doc,
String fieldName,
Object fieldValue) |
org.apache.solr.common.params.ModifiableSolrParams |
buildParams(String site,
String id,
String prefix,
String suffix,
Map<String,List<String>> fields) |
protected org.apache.solr.common.SolrInputDocument |
createDoc() |
addCopyFields, build, build, createSAXReader, formatAsIso, postProcess, setCopyFields, setFieldValueConverter, setIdFieldName, setLocalIdFieldName, setParserService, setPostProcessors, setPublishingDateAltFieldName, setPublishingDateFieldName, setRootIdFieldName, setSiteFieldName
public org.apache.solr.common.params.ModifiableSolrParams buildParams(String site, String id, String prefix, String suffix, Map<String,List<String>> fields)
protected org.apache.solr.common.SolrInputDocument createDoc()
createDoc
in class AbstractDocumentBuilder<org.apache.solr.common.SolrInputDocument>
protected void addField(org.apache.solr.common.SolrInputDocument doc, String fieldName, Object fieldValue)
addField
in class AbstractDocumentBuilder<org.apache.solr.common.SolrInputDocument>
Copyright © 2019 CrafterCMS. All rights reserved.