[PR #5475] [MERGED] Fix search issue for words inside Guillemets (« ») without spaces #6502

Closed
opened 2026-02-05 10:34:02 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/5475
Author: @inv-hareesh
Created: 2/7/2025
Status: Merged
Merged: 2/14/2025
Merged by: @ssddanbrown

Base: developmentHead: development


📝 Commits (1)

  • d938565 Fix search issue for words inside Guillemets (« ») without spaces

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 app/Search/SearchIndex.php (+1 -1)

📄 Description

This commit fixes an issue where words enclosed in Guillemets (« ») were not indexed correctly for search when there was no space after the opening quote. The search engine was not recognizing such words as separate terms, leading to failed search results.

The fix involves updating the list of delimiter characters in SearchIndex::$delimiters to include Guillemets (« and »), ensuring that words within them are properly tokenized and indexed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/5475 **Author:** [@inv-hareesh](https://github.com/inv-hareesh) **Created:** 2/7/2025 **Status:** ✅ Merged **Merged:** 2/14/2025 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `development` ← **Head:** `development` --- ### 📝 Commits (1) - [`d938565`](https://github.com/BookStackApp/BookStack/commit/d938565839e5c59576b45ccb6e8caa40baa7129d) Fix search issue for words inside Guillemets (« ») without spaces ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/Search/SearchIndex.php` (+1 -1) </details> ### 📄 Description This commit fixes an issue where words enclosed in Guillemets (« ») were not indexed correctly for search when there was no space after the opening quote. The search engine was not recognizing such words as separate terms, leading to failed search results. The fix involves updating the list of delimiter characters in SearchIndex::$delimiters to include Guillemets (« and »), ensuring that words within them are properly tokenized and indexed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:34:02 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6502