microsoft / vscode-azurecognitivesearch

Azure Cognitive Search extension for VS Code (Preview)
MIT License
14 stars 13 forks source link

Error while creating new Index on Azure Cognitive Search #17

Open sankartadi opened 3 years ago

sankartadi commented 3 years ago

Does this occur consistently? Repro steps:

1. 2.

Action: azureCognitiveSearch.searchDocument.onDidSaveTextDocument Error type: Error Error Message: The request is invalid.

Version: 0.2.0 OS: win32 OS Release: 10.0.18363 Product: Visual Studio Code Product Version: 1.56.2 Language: en

Call Stack ``` SimpleSearchClient. extension.bundle.js:5:209545 rejected extension.bundle.js:5:206203 processTicksAndRejections task_queues.js:93:5 ```
dereklegenzoff commented 3 years ago

@sankartadi - this appears to be an error with your index definition rather than with the extension itself. I would recommend using the json validation to ensure there's no syntax errors in your index definition. I recently ran into a similar error when I forgot to specify a custom analyzer that I had included in one of my fields so something similar could be the issue here too.

Also keep in mind that the extension currently uses the 2020-06-30 API version (except for querying) so preview features such as normalizers aren't supported.