@Jocke Ek The error you're encountering when creating an index with a custom analyzer is likely due to a validation issue in the Search Explorer tool. The Search Explorer is a client-side tool that performs validation checks on the index schema, and it may not correctly recognize custom analyzers defined within the index schema.
However, this issue does not necessarily prevent the index from being created successfully. As long as the Azure Cognitive Search service can parse and understand the custom analyzer definition, it should create the index without any issues. The example you provided from Microsoft's documentation is valid, and if you can create the index successfully using that schema, then the warning or error message you're seeing in the Search Explorer can be considered a false positive or a limitation of the Search Explorer tool.
Here are a few points to consider:
- The Azure Cognitive Search service itself has a more robust validation mechanism than the Search Explorer tool. It's possible for the service to accept a schema that the Search Explorer tool considers invalid.
- The custom analyzer definition in the example you provided (
tagsAnalyzer
) is valid according to the Azure Cognitive Search service. If the index creation succeeds without any errors from the service, the index and the custom analyzer should be working as intended. - The Search Explorer tool is primarily designed for exploring and testing Azure Cognitive Search indices and may have limitations when it comes to validating complex schemas or custom configurations like custom analyzers.
If you're not encountering any functional issues with the index or the custom analyzer, you can safely ignore the warning or error message displayed in the Search Explorer. However, if you experience problems with the index or the custom analyzer's behavior, you should investigate further and ensure that the custom analyzer definition is correct.
In summary, the error or warning you're seeing is likely a false positive or a limitation of the Search Explorer tool and should not prevent you from using the custom analyzer if the index creation succeeds without any errors from the Azure Cognitive Search service.
Hope that helps.
-Grace