Steps to reproduce:
- Click Products
- Click My Queries
- Click Add new query
- Enter a name and click Save and close
Actual results:
A JSON 500 error: https://localhost:6001/Admin/Api/QuerySave?Query.FolderPath=%2FFiles%2FSystem%2FSmartSearches%2FEcommerce%2FPersonal%2F1&Query.Type=QueryNew
{"status":"error","message":"An index is required to create a query.","exception":null,"model":{"id":"00000000-0000-0000-0000-000000000000","sourceRepository":null,"name":"wefrewfrew","sourceIndex":null,"parametersCount":0,"sortParametersCount":0,"updatedAt":null,"createdAt":null,"fileName":null,"folderPath":"/Files/System/SmartSearches/Ecommerce/Personal/1","type":null,"subType":null,"description":null,"appendCompletionExpressions":false,"isProductQuery":true,"permissionLevel":"all"},"modelIdentifier":null,"resultActions":[]}
Expected results:
An error message indicating that the index is required.