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 String
extractTextFromHtml
(String html) void
writeDocument
(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) protected static void
writeProperties
(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc, String schema) protected void
writeSchemas
(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) protected void
writeSystemProperties
(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, wait
Methods inherited from interface org.nuxeo.ecm.core.search.index.IndexingJsonWriter
accept
Methods 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:
-
-
Constructor Details
-
DefaultIndexingJsonWriter
public DefaultIndexingJsonWriter()
-
-
Method Details
-
writeDocument
public void writeDocument(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel doc) throws IOException - Specified by:
writeDocument
in interfaceIndexingJsonWriter
- Throws:
IOException
-
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) 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
-