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
- YAML
- JSON
- XML
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: {}
{
"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": {}
}
]
}
<memoryCommitter>
<class>MemoryCommitter</class>
<fieldMappings/>
<fieldMatcher>
<ignoreCase>false</ignoreCase>
<ignoreDiacritic>false</ignoreDiacritic>
<matchEmpty>false</matchEmpty>
<method>BASIC</method>
<negateMatches>false</negateMatches>
<partial>false</partial>
<pattern>string</pattern>
<replaceAll>false</replaceAll>
<trim>false</trim>
</fieldMatcher>
<ignoreContent>false</ignoreContent>
<restrictions>
<restriction>
<fieldMatcher/>
<valueMatcher/>
</restriction>
</restrictions>
</memoryCommitter>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
fieldMappings | Record<string, string> | No | - |
fieldMatcher | TextMatcher | No | TextMatcher |
ignoreContent | boolean | No | false |
restrictions | PropertyMatcher[] | 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.