InfoArchive Connector 24.2

# fingerprint_string

The `fingerprint_string` function generates a list of fingerprints from an input string. These fingerprints can be compared with fingerprints generated from a different string to ascertain whether any parts of the strings match.

This function is intended to process document-sized portions of text. It returns multiple fingerprints because the input is divided into shorter sections (chunks) before the fingerprints are generated, so that you can find matches between two strings that are not identical but do contain common chunks of content.

## Syntax

    fingerprint_string( input[, min_chars[, mask_size[, num_bytes]]] )

## Arguments

Argument | Description
--- | ---
`input` | (string) The input string to generate fingerprints from.
`min_chars` | (integer) The minimum chunk size, in UTF-8 characters. The default value is 10.
`mask_size` | (integer) Determines the frequency at which chunks are generated from the input. Increasing the value by one should approximately halve the number of chunks. Decreasing the value by one should approximately double the number of chunks. Specify a value from 1 to 31. The default value is 8.
`num_bytes` | (integer) The length of the substring to check when calculating string chunk boundaries. OpenText recommends using the default value, which is 48.

## Returns

(strings). One or more strings.

## Example

To map the return values to a table, surround the function call with braces. For example:

    local fingerprints = { fingerprint_string("here is the input string") };

Copyright 2024 Open Text
Version 24.2 | Last updated March 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL InfoArchive Connector 24.2

Topic Title: fingerprint_string