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
acl:
flatPrefix: string
format: NATIVE
partial: REJECT
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",
"acl": {
"flatPrefix": "string",
"format": "NATIVE",
"partial": "REJECT"
},
"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>
<acl>
<flatPrefix>string</flatPrefix>
<format>NATIVE</format>
<partial>REJECT</partial>
</acl>
<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 |
|---|---|---|---|
acl | AclCommitterConfig | No | AclCommitterConfig |
fieldMappings | Record<string, string> | No | - |
fieldMatcher | TextMatcher | No | TextMatcher |
ignoreContent | boolean | No | false |
restrictions | PropertyMatcher[] | No | - |
Property Details
acl
How this committer sends the access control list (ACL) a document carries in its crawler.acl field, written by the
fetchers that read a source's permissions:
format:JSONsends the field as it is;FLATreplaces it with plain fields (below);NATIVEwrites it as the destination's own access control, for committers whose destination has one;NONEdoes not send it. When not set, the committer's default applies (NATIVEwhere available, otherwiseJSON).partial: what to do with a document whose permissions could only be read in part:REJECT(the default) orSEND.flatPrefix: the prefix of theFLATfields. Default isacl.
A document whose permissions cannot be vouched for is withheld: it is not sent, a version sent before is removed
from the destination, and the crawler tries it again on its next run. That is the case when its ACL is partial and
partial is REJECT, when its permissions could not be read at all, when the ACL is unreadable or of an unknown
version, or when NATIVE cannot express it. A withheld document is never sent as readable by everyone.
With FLAT, acl.levels names the checks a person must pass, in order, and each level has an allow field and a deny
field holding principals as kind:dir:id (or special:id):
acl.levels = share, file
acl.share.allow = group:ad:CORP:Sales
acl.file.allow = group:ad:CORP:Sales
acl.file.deny = group:ad:CORP:Interns
acl.owners = user:ad:CORP:pascal
A person may see the document if they match an allow value of every level and no deny value of any.
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.