CMS doesn't work with identifier which is having dash or other special characters other than underscore

Hi, We have set up a new VSF for our project and somehow we have been started facing the issue with CMS identifier. If we keep only underscore in the identifier then it works perfectly but if we keep dash then VSF doesn’t show data from elastic search but we can see the result in the elastic search for the same. It was working in our previous VSF project with the same version. Is there any specific issue or solution you can let me know?

Hi there! I guess it might be caused by wrong Elastic schema. By default the identifier of cms_page should be a keyword: https://github.com/DivanteLtd/vue-storefront-api/blob/master/config/elastic.schema.cms_page.json

Please run yarn db rebuild within your vue-storefront-api installation and check out if it helped. It should

Hi @pkarw Thank you for the solution! It worked for me. Appreciate your support!