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.