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:
-
For Elasticsearch, see Create a custom analyzer.
-
For OpenSearch, see Creating a custom analyzer.
-
For Azure AI Search, see Add custom analyzers to string fields in an Azure AI Search 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:
-
Ensure that your list of metadata does not contain any warnings.
-
Edit your content source and in the Target drop-down menu, temporarily change your Azure AI Search target to another target.
-
In the Target drop-down menu, change back to your Azure AI Search Target.
-
Click Save.
-
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.
-
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:
-
In Connectivity Hub, click Content Sources.
-
Select the Content Source that you want to apply your analyzer to.
-
Click the Target Specific tab.
-
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.
-
-
Click Save Changes.