Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
Neil O'Keeffe edited this page Oct 5, 2023 · 1 revision

Keyword Repair Utility

Overview

The Keyword Repair Utility is used to delete and regenerate all mandatory search keywords in PxStat. Mandatory keywords are defined as those that are automatically generated by the PX file import process. An issue was found where English language keywords that included diacritics (e.g. café, Škoda) were wrongly split into multiple words. In order to fix this retrospectively, it is necessary to run the Keyword Repair Utility.

Setup

The utility uses the Px language plugins to do language specific tasks. You must include at least the language plugin for English and an additional language plugin for each supported language. See https://github.com/CSOIreland/PxLanguagePlugins for details.

The appsettings.json file

The appsettings.json file includes two sections:

  • The database connection string. This must be amended to connect to the required PxStat database
  • The language plugin configuration.

Language plugin configuration

This consists of 3 sections:

  • lngIsoCode: This is the 2 letter ISO code for language, e.g. "en" for English
  • location: This is the physical location of the language plugin
  • translationUrl: This will be the same translation url as used in the PxStat configuration

The application runs as a console app. The application delivers a summary of progress as it proceeds.

Clone this wiki locally