Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search index updates aren't triggered if included content type entries contain whitespace #33

Closed
bluemodus-tbuchanan opened this issue Mar 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@bluemodus-tbuchanan
Copy link

Brief bug description

We noticed certain page types were not triggering search index updates when the page was updated. After investigating we noticed that there was whitespace after a line item in the included content types of the index path. We removed the additional whitespace from the line item and edited the page again and saw the index update as expected.

Repro steps

  1. Create or edit a page search index at /admin/lucene/indexes
  2. In the "Included ContentType Items" field include an entry with extra whitespace after the item (in our instance the type that failed to trigger an update was at the end of the list)
  3. Save the path, save the index, and observe the last updated time of the index
  4. Edit a page's content (in our instance, we are updating the url of the page)
  5. Head back to the indexes and observe the last updated time

Expected behavior

After waiting a reasonable amount of time for the index to update, the index last updated time should be after the page last updated time and the page that was modified returns it's new data in the results

Test environment

  • Platform/OS:
    • net6.0
    • Windows 10
  • Browser
    • Chrome
  • Version
    • Xperience by Kentico version 28.1.0
    • Kentico.Xperience.Lucene 4.1.0

Screenshots

The configuration we had that caused the issue, with client codename omitted.
image

@seangwright seangwright added the bug Something isn't working label Mar 8, 2024
@fialafilip
Copy link
Collaborator

We are working on fix, which will change input type from text area to multiselect.

@fialafilip
Copy link
Collaborator

Hi @bluemodus-tbuchanan, fix has been released in v5.0.0.0
https://github.com/Kentico/xperience-by-kentico-lucene/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants