Searching for word only works if put inside "" #836

Open
opened 2026-02-04 22:26:12 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @tp199314 on GitHub (Sep 29, 2018).

Describe the bug
When searching for String i did not receive any results. I will get results, when i am searching for "String" (added " before and after in the search box).
This issue is simmilar to https://github.com/BookStackApp/BookStack/issues/531
I am on BookStack v0.24.1, but i tried to regenerate the search index using the command "php artisan bookstack:regenerate-search" in /var/www/bookstack

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to BookStack
  2. Click into Search Field
  3. Search for String
  4. No Result.
  5. Search for "String"
  6. Got the correct Result.

Screenshots
image
image

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): BookStack v0.24.1
  • PHP Version: 7.2.10-0ubuntu0.18.04.1
  • Hosting Method (Nginx/Apache/Docker): Apache
Originally created by @tp199314 on GitHub (Sep 29, 2018). **Describe the bug** When searching for String i did not receive any results. I will get results, when i am searching for "String" (added " before and after in the search box). This issue is simmilar to https://github.com/BookStackApp/BookStack/issues/531 I am on BookStack v0.24.1, but i tried to regenerate the search index using the command "php artisan bookstack:regenerate-search" in /var/www/bookstack **Steps To Reproduce** Steps to reproduce the behavior: 1. Go to BookStack 2. Click into Search Field 3. Search for String 4. No Result. 5. Search for "String" 6. Got the correct Result. **Screenshots** ![image](https://user-images.githubusercontent.com/2600276/46244484-af3e0200-c3df-11e8-80ee-fc2345fe5cb1.png) ![image](https://user-images.githubusercontent.com/2600276/46244489-c250d200-c3df-11e8-8b5a-41cf674b75b1.png) **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): BookStack v0.24.1 - PHP Version: 7.2.10-0ubuntu0.18.04.1 - Hosting Method (Nginx/Apache/Docker): Apache
OVERLORD added the 🐛 Bug🔍 Pending Validation labels 2026-02-04 22:26:12 +03:00
Author
Owner

@tp199314 commented on GitHub (Sep 29, 2018):

The string i am searching for is part of a headline (Header Tiny) or a Link. When i put the string in normal text, the search is working. Is it possible to add search in headlines and/or links to the search function?

@tp199314 commented on GitHub (Sep 29, 2018): The string i am searching for is part of a headline (Header Tiny) or a Link. When i put the string in normal text, the search is working. Is it possible to add search in headlines and/or links to the search function?
Author
Owner

@bennyandresen commented on GitHub (Feb 6, 2020):

I have the same issue. I thought it was related to numbers in my search term but after putting them in quotes I was able to find them.

Turns out the numbers I was looking for were part of a Tiny Header and a Link.

@bennyandresen commented on GitHub (Feb 6, 2020): I have the same issue. I thought it was related to numbers in my search term but after putting them in quotes I was able to find them. Turns out the numbers I was looking for were part of a Tiny Header and a Link.
Author
Owner

@bradymenegay commented on GitHub (Feb 13, 2020):

Same Issue here. I have tested this with text in a Medium Header as well as paragraph text within a table. The same issue seems to happen with multi-word but not with every search.

@bradymenegay commented on GitHub (Feb 13, 2020): Same Issue here. I have tested this with text in a Medium Header as well as paragraph text within a table. The same issue seems to happen with multi-word but not with every search.
Author
Owner

@scureza commented on GitHub (Mar 9, 2020):

I have a page of about 500 lines, movie titles, in some cases the search finds the page i'm looking for only if i put the word in quotes. Usually happens with the first word of the line. I also tried on the demo site or to reconstruct the index on my DB, but I haven't solved the problem.

@scureza commented on GitHub (Mar 9, 2020): I have a page of about 500 lines, movie titles, in some cases the search finds the page i'm looking for only if i put the word in quotes. Usually happens with the first word of the line. I also tried on the demo site or to reconstruct the index on my DB, but I haven't solved the problem.
Author
Owner

@mojaedukacja commented on GitHub (Mar 26, 2021):

Here the same.
Any new solution or workaround?

Please help.

@mojaedukacja commented on GitHub (Mar 26, 2021): Here the same. Any new solution or workaround? Please help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#836