Package org.nuxeo.ecm.core.search.index
Class DefaultIndexingJsonWriter
java.lang.Object
org.nuxeo.ecm.core.search.index.DefaultIndexingJsonWriter
- All Implemented Interfaces:
ThrowableBiConsumer<com.fasterxml.jackson.core.JsonGenerator,,DocumentModel, IOException> IndexingJsonWriter
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) voidwriteDocument(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) protected static voidwriteProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String schema) protected voidwriteSchemas(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) protected voidwriteSystemProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.search.index.IndexingJsonWriter
acceptMethods inherited from interface org.nuxeo.common.function.ThrowableBiConsumer
toBiConsumer
-
Field Details
-
REPOSITORY_PROP
- See Also:
-
TAG_FACET
- See Also:
-
TAG_PROP
- See Also:
-
TAG_LABEL_PROP
- See Also:
-
MAX_FULLTEXT_SIZE_FIELD
- Since:
- 2025.8
- See Also:
-
MAX_FULLTEXT_SIZE
protected final int MAX_FULLTEXT_SIZE
-
-
Constructor Details
-
DefaultIndexingJsonWriter
public DefaultIndexingJsonWriter()
-
-
Method Details
-
writeDocument
public void writeDocument(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) throws IOException - Specified by:
writeDocumentin interfaceIndexingJsonWriter- Throws:
IOException
-
writeSystemProperties
protected void writeSystemProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) throws IOException - Throws:
IOException- Since:
- 7.2
-
truncateFulltext
- Since:
- 2025.8
-
getBinaryFulltext
-
writeSchemas
protected void writeSchemas(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) throws IOException - Throws:
IOException- Since:
- 7.2
-
writeProperties
protected static void writeProperties(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String schema) throws IOException - Throws:
IOException
-
extractTextFromHtml
-