Match types
Global parameters
The following parameters are available to most* types of Match objects.
*These parameters aren’t available as top-level parameters for a Boolean match.
Simple match
Match using strings. Parameters
SYNTAX EXAMPLE
The following config uses a simple match:
JSON
"anchor":"some string to match". For more information see Anchor.
EDIT DISTANCE EXAMPLE
The following example shows setting the Edit Distance parameter on a simple match for a poor-quality photographed document, so that the anchor 6 City state and ZIP code matches the incorrect OCR output of 6 Chi state and ZIP code.
Config
JSON
The following image shows the example document used with this example config:
Output
JSON
Regex match
Match using a regular expression. Parameters
Example
For an example, see the Passthrough method example.
First match
This is a convenience match to find the first line encountered. Parameters
Example
This example matches the first line after a matched line in an array:
JSON
Boolean matches
Use Boolean matches to write Boolean logic about your matches. For example, use the Any match to match on an array of synonymous terms if a document contains small wording variations across revisions. Parameters
EXAMPLE
Config
JSON
The following image shows the example document used with this example config:
Output
JSON

