Package org.nuxeo.elasticsearch.io
Class JsonESDocumentWriter
java.lang.Object
org.nuxeo.elasticsearch.io.JsonESDocumentWriter
JSon writer that outputs a format ready to eat by elasticsearch.
- Since:
- 5.9.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
extractTextFromHtml
(String html) 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 Details
-
JsonESDocumentWriter
public JsonESDocumentWriter()
-
-
Method Details
-
writeSystemProperties
protected void writeSystemProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) throws IOException - Throws:
IOException
- Since:
- 7.2
-
getBinaryFulltext
-
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
-
extractTextFromHtml
-