Configure analyzers for specific targets

In Connectivity Hub, you can configure specific analyzers for Elasticsearch, Azure AI Search, and OpenSearch target indices to determine how text is processed, indexed, and searched across search engines. These analyzers break down text into searchable tokens, applying filters such as lower-casing or stemming, and remove irrelevant elements like stop words, ensuring that user queries return accurate and relevant results, regardless of differences in case, tense, or formatting.

Prerequisites

  • To use a custom analyzer, you must first create one for your index:

  • If you are upgrading to Connectivity Hub 4.3 and using existing content sources with Azure AI Search or Elasticsearch targets, you will receive an "Exception has been thrown by the target of an invocation - Object Reference not set to an instance of an object." error when crawling these content sources. To fix this, you must do the following:

    1. Ensure that your list of metadata does not contain any warnings.

    2. Edit your content source and in the Target drop-down menu, temporarily change your Azure AI Search target to another target.

    3. In the Target drop-down menu, change back to your Azure AI Search Target.

    4. Click Save.

    5. On your content source, click the Target Specific tab and verify that you see a new setting for configuring the index batch size and/or configuring analyzers on this tab.

    6. Click Save.

Specify your Analyzer in Connectivity Hub

To specify a custom or predefined analyzer for your Elasticsearch, Azure AI Search, or OpenSearch targets, do the following:

  1. In Connectivity Hub, click Content Sources.

  2. Select the Content Source that you want to apply your analyzer to.

  3. Click the Target Specific tab.

  4. In the Analyzer field, do one of the following:

    • If you are using a predefined analyzer, select the analyzer from the drop-down menu.

    • If you are using a custom analyzer, enter the name of that analyzer in this field.

  5. Click Save Changes.

If the analyzer is changed on an existing content source that already contains and existing index with crawled items, you must recrawl the content source for the new analyzer to be used.