Package sk.iway.iwcm.rag.indexing
Class DocDetailsContentExtractor
java.lang.Object
sk.iway.iwcm.rag.indexing.DocDetailsContentExtractor
- All Implemented Interfaces:
ContentExtractor<DocDetails>
@Component
public class DocDetailsContentExtractor
extends Object
implements ContentExtractor<DocDetails>
Content extractor for DocDetails entities.
Uses EditorUtils.getDataAsc with isLucene=true to:
- Preserve diacritics (no internationalToEnglish)
- Render INCLUDE macros (if fulltextExecuteApps=true)
- Strip HTML tags
- Append title, keywords, perex, attributes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractText(DocDetails doc) Extract text content from the given entity, suitable for embedding.Returns the entity type identifier (e.g., "document").
-
Field Details
-
ENTITY_TYPE
-
-
Constructor Details
-
DocDetailsContentExtractor
public DocDetailsContentExtractor()
-
-
Method Details
-
extractText
Description copied from interface:ContentExtractorExtract text content from the given entity, suitable for embedding.- Specified by:
extractTextin interfaceContentExtractor<DocDetails>- Parameters:
doc- the source entity- Returns:
- extracted plain text (HTML stripped, includes rendered)
-
getEntityType
Description copied from interface:ContentExtractorReturns the entity type identifier (e.g., "document").- Specified by:
getEntityTypein interfaceContentExtractor<DocDetails>
-