Skip to main content

MemoryCommitter

For programmers. Not for production use.

Notesโ€‹

Stores crawled documents in memory rather than sending them to a persistent target. Intended for use by developers and automated tests only โ€” not for production use.

Usageโ€‹

class: MemoryCommitter
fieldMappings: {}
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
ignoreContent: false
restrictions:
- fieldMatcher: {}
valueMatcher: {}

Propertiesโ€‹

PropertyTypeRequiredDefault
fieldMappingsRecord<string, string>No-
fieldMatcherTextMatcherNoTextMatcher
ignoreContentbooleanNofalse
restrictionsPropertyMatcher[]No-

Property Detailsโ€‹

fieldMappingsโ€‹

Mapping of source fields to target ones in memory.

fieldMatcherโ€‹

Store in memory values of matching field names. Leave empty to store values from all fields.

ignoreContentโ€‹

Do not store document content in memory.

restrictionsโ€‹

Defines filter conditions that restrict which documents this committer processes. Documents not matching the restrictions are ignored by this committer.