Removing the classifications in custom NER file

In the Query service, while generating the custom NER file on startup, the default classification to write in the custom NER file will be as follows.

  • CATEGORY
  • BRAND_NAME
  • ATTRIBUTE_NAME
  • ATTRIBUTE_VALUE
  • UOM
  • FILTER
  • COLOR
  • HYPHENATED

Suppose you want to avoid writing classifications to the custom NER file. In that case, you can change the value of the nlp.classification.write.to.ner.file property using the configuration endpoint for the component node.

Default
name
nlp.classification.write.to.ner.file
value
CATEGORY, BRAND_NAME, ATTRIBUTE_NAME, ATTRIBUTE_VALUE, UOM, FILTER, COLOR, HYPHENATED.

To remove the classification

After removing the classification from the value using the configuration endpoint, no entries will be added to the custom NER file.

Consider removing the CATEGORY classification as given below. After removing the CATEGORY classification, none of the keywords will be classified as a CATEGORY while keyword searching.

To update the property, execute the following request:
PATCH/POST http://<dataQueryHost>:<port>/search/resources/api/v2/configuration?nodeName=component&envType=auth

{
    "extendedconfiguration": {
        "configgrouping": [
            {
                "name": "SearchConfiguration",
                "property": [
                    {
                        "name": "nlp.classification.write.to.ner.file",
                        "value": "BRAND_NAME, ATTRIBUTE_NAME, ATTRIBUTE_VALUE, UOM, FILTER, COLOR, HYPHENATED "
                    }
                ]
            }
        ]
    }
}
Note:
  • If this is the first time a configuration has been added through the configuration endpoint for a component node, then use the POST request method; otherwise, use PATCH.
  • Need to restart the query service after change.