Package org.nuxeo.elasticsearch.io
Class JsonESDocumentWriter
- java.lang.Object
-
- org.nuxeo.elasticsearch.io.JsonESDocumentWriter
-
public class JsonESDocumentWriter extends Object
JSon writer that outputs a format ready to eat by elasticsearch.- Since:
- 5.9.3
-
-
Constructor Summary
Constructors Constructor Description JsonESDocumentWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
getBinaryFulltext(DocumentModel doc)
protected void
writeContextParameters(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, Map<String,String> contextParameters)
void
writeESDocument(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String[] schemas, Map<String,String> contextParameters)
protected static void
writeProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String schema, javax.servlet.ServletRequest request)
protected void
writeSchemas(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String[] schemas)
protected void
writeSystemProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc)
-
-
-
Constructor Detail
-
JsonESDocumentWriter
public JsonESDocumentWriter()
-
-
Method Detail
-
writeSystemProperties
protected void writeSystemProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) throws IOException
- Throws:
IOException
- Since:
- 7.2
-
getBinaryFulltext
protected Map<String,String> getBinaryFulltext(DocumentModel doc) throws IOException
- Throws:
IOException
-
writeSchemas
protected void writeSchemas(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String[] schemas) throws IOException
- Throws:
IOException
- Since:
- 7.2
-
writeContextParameters
protected void writeContextParameters(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, Map<String,String> contextParameters) throws IOException
- Throws:
IOException
- Since:
- 7.2
-
writeESDocument
public void writeESDocument(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String[] schemas, Map<String,String> contextParameters) throws IOException
- Throws:
IOException
-
writeProperties
protected static void writeProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String schema, javax.servlet.ServletRequest request) throws IOException
- Throws:
IOException
-
-