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)
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)
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.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.