Adding custom range filter to Matchmaker
Inside ZooKeeper is a node with the name filter, which is used
to parse or ignore redundant words from the search term during Natural Language Processing.
At present the operations supported with filter are
update
, delete
, and retrieve
. The
add
operation is currently not supported. New records are added using
the POST request method. The existing records are updated (add, update, delete record) using
the PATCH request method.
Note: No range filter configurations are available for the Finnish
or Swedish languages in the default configuration. You can add these languages using
the configuration endpoint.
Endpoint
The endpoint for this service
is:
http://data_environment_hostname:30921/search/resources/api/v2/configuration?nodeName=filter&envType=auth&locale=en_US
Example
Following is a sample filter.json file, for filtering or
term-ignore.
{
"quarter": "TO_NUMBER~0.25"
"half": "TO_NUMBER~0.50",
"one and half": "TO_NUMBER~1.5",
"but": "IGNORE_TERM",
"usd": "IGNORE_TERM",
"sterling": "IGNORE_TERM",
"up to": "FILTER_LTE~1",
"less than": "FILTER_LTE~1"
"expensive": "FILTER_GTE~-1",
}