Kentico / xperience-by-kentico-algolia

Enables the creation of Algolia search indexes and the indexing of Xperience content tree pages using a code-first approach.
https://www.kentico.com/
MIT License
4 stars 1 forks source link

Algolia index detail error in administration + rebuild not working #18

Closed denny101603 closed 1 year ago

denny101603 commented 1 year ago

Brief bug description

Repro steps

  1. Follow sections "Installation" and "Creating and registering an Algolia index" from readme
  2. Run project, go to Kentico administration, go to "Algolia" application, click on the created index

Test environment

Screenshots

image image

kentico-ericd commented 1 year ago

Hello @denny101603, can you please try a full clean+rebuild of your solution? I've found that cleaning is sometimes necessary when new admin (react) scripts are added to the project.

After that, can you try building the index again to see if that helped? Are there any errors in the Event log when you build it? Can you check that the search model has IncludedPath attributes and they are correctly set to index certain pages in the content tree?

denny101603 commented 1 year ago

@kentico-ericd I tried the clean + build, but still the same behavior. No errors in the event log. Screenshots of search model, service registration and existing pages:

image image image

The NewsDetail page type has properties "Title" and "Perex" besides others.

ondrejhenek commented 1 year ago

Hi, the first issue in admin UI "Something went wrong!" has been resolved: https://www.nuget.org/packages/Kentico.Xperience.Algolia Please, update your package to a version 2.0.1

The second issue could not be replicated. Could you, please, include API log regarding that index directly from Algolia?

Also, I am closing this issue to keep things in order - one issue per one problem. It's easier to track things. So, please if the second problem persists, create a new issue and include Algolia API log. We will jump on it ASAP. Thank you!