vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

Issues after upgrade the vtex.search from 0.x to 2.x #581

Open campedelliluiz opened 3 years ago

campedelliluiz commented 3 years ago

Describe the bug After upgrade the vtex-search from 0.x to 2.x some custom search pages are not working or there are showing a critical error

To Reproduce Steps to reproduce the behavior:

  1. Go to https://search--emporiodacerveja.myvtex.com and search for "IPA"
  2. Or enter directly on the page https://search--emporiodacerveja.myvtex.com/ipa
  3. Enter /kits pages https://search--emporiodacerveja.myvtex.com/kits

Expected behavior Show the search results

Additional context For the /kits pages was perform a mutation at the graphql rewriter to delete an unused redirect

@vtex-apps/search-engagement-team

https:::search--emporiodacerveja myvtex com:kits 2021-04-27 17-43-04 https:::search--emporiodacerveja myvtex com:ipa 2021-04-27 17-34-23 Estilos - IPA 2021-04-27 17-33-57
ganobrega commented 3 years ago

I had a similar problem these days. I installed these two apps manually in my workspace:

vtex install vtex.admin-search
vtex install vtex.search-resolver

I also had to enable search indexing in the Admin Panel > Search > Integration Settings:

Captura de Tela 2021-05-11 às 23 13 35
hermescortesm commented 3 years ago

If someone has this problem and Integration settings are not listed is because you're working in other workspace. The solution is:

vtex install vtex.admin-search vtex.search-resolver@1.x vtex.reviews-and-ratings

But all is needed in master, so when you do that simply back to your testing workspace and check it in the administration for Integration settings, activate and it works.