public class DocumentBuilder extends Object
Document
from a SolrInputDocument
.Constructor and Description |
---|
DocumentBuilder() |
Modifier and Type | Method and Description |
---|---|
static Document |
toDocument(SolrInputDocument doc,
IndexSchema schema) |
static Document |
toDocument(SolrInputDocument doc,
IndexSchema schema,
boolean forInPlaceUpdate,
boolean ignoreNestedDocs)
Convert a SolrInputDocument to a lucene Document.
|
public static Document toDocument(SolrInputDocument doc, IndexSchema schema)
public static Document toDocument(SolrInputDocument doc, IndexSchema schema, boolean forInPlaceUpdate, boolean ignoreNestedDocs)
doc
- SolrInputDocument from which the document has to be builtschema
- Schema instanceforInPlaceUpdate
- Whether the output document would be used for an in-place update or not. When this is true,
default fields values and copy fields targets are not populated.ignoreNestedDocs
- if nested child documents should be ignored. If false then an exception will be thrown.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.