Install > Install and configure the Solr Search Engine > Configuring Knowledge Management Search > Configure Advanced Search for Knowledge Management

Configure Advanced Search for Knowledge Management

User role: System Administrator

Prior to version 9.32, the KM Solr Search Engine does not support Full Match mode for advanced search against KM fields. For example, if you enter "Phone Troubleshooting" in the Title field, your search will return records whose title contains "phone" and also records whose doc body contains "troubleshooting".

Starting with version 9.32, the Solr Search Engine allows you to configure Advanced Search for KM, to enable or disable Full Match mode. You do so by configuring the Advanced Search Script (<library name>_kmprocesslibcriteria) for each sclib type knowledgebase.

To configure Advanced Search for a sclib knowledgebase:

  1. Make sure you have already added each query field to dbdict kmquery.
  2. Navigate to Knowledge Management > Configuration > Knowledgebases and open the knowledgebase.
  3. On the Type information tab, click the Find button next to the Advanced Search Script field. The <library name>_kmprocesslibcriteria record opens.
  4. For each "field=value" type query field, add an entry to the field mapping section, using this format:

    ["<query_field_name>", "<search_engine_alias>", <true or false>]

    Where:

    • <query_field_name> is the name of the field you added to dbdict "kmquery";
    • <search_engine_alias> is the alias specified for the query field in the Field Definitions tab of the knowledgebase;
    • <true or false>: This part indicates if Advanced Search uses full match mode for this field (when set to true, full match is used).

    The following are examples:

    this.fieldmapping = [
    ["incidentlib_number","number",false],
    ["incidentlib_status","problemstatus",true],
    ...
  5. If you use custom search criteria that are not simply a "field=value" query, add it to the processSpecial function defined in the <library name>_kmprocesslibcriteria record.
  6. Save the advanced search script.

Related topics

Add an sclib Knowledgebase