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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringextractTextFromHtml(String html) protected StringtruncateFulltext(String fulltext) protected voidwriteContextParameters(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, Map<String, String> contextParameters) voidwriteESDocument(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String[] schemas, Map<String, String> contextParameters) protected static voidwriteProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String schema, javax.servlet.ServletRequest request) protected voidwriteSchemas(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String[] schemas) protected voidwriteSystemProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc)
-
Field Details
-
MAX_FULLTEXT_SIZE
protected final int MAX_FULLTEXT_SIZE
-
-
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
-
truncateFulltext
- Since:
- 2023.36
-
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
-