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.