Register a custom similarity comparator for a field or nested path.
The comparator replaces whatever function was previously associated with
path (including any built-in default). Use registerPlugin to
set both a weight and a comparator in a single call.
Parameters
path: string
Dot-notation field path, e.g. "screen.width" or "fonts".
Register a custom similarity comparator for a field or nested path.
The comparator replaces whatever function was previously associated with
path(including any built-in default). Use registerPlugin to set both a weight and a comparator in a single call.