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

Rebuild not working #20

Closed denny101603 closed 1 year ago

denny101603 commented 1 year ago

Brief bug description

I created new Algolia index, but it is empty. When I click on the rebuild button (in list of indexes, Kentico administration), I see green notification about rebuild in progress, but according to Algolia dashboard (where I see the created index), no records are added.

No errors in event log. For each rebuild try, these two request are in the Algolia "Search API logs":

AlgoliaLog_Item1.txt AlgoliaLog_Item2.txt

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 "build index" button

Expected behavior

Records should be added to the index (corresponding with the published pages of selected content type)

Test environment

Additional context

Screenshots

Screenshots of search model, service registration and existing pages: image image image

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

Lahvac commented 1 year ago

Hi,

Does the this issue affect only "build index" or does it also affect indexing of pages on update or create? What happens if you change Title or Perex of one of the NewsDetail pages is it indexed or not?

Does the site use default culture "en-US" of does it use other culture?

denny101603 commented 1 year ago

@Lahvac default culture is de-DE. When I create/update a page, it is added to the index. So yes, the issue is for rebuild only.

Lahvac commented 1 year ago

@denny101603 thanks for your reply. I was able to reproduce the error using 'de-DE' culture in DEV environment.

The issue will be fixed by my pull request #21