Searching strings with less than 6 characters #288

Closed
opened 2026-02-04 18:18:59 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @jernejpraprotnik on GitHub (Mar 2, 2017).

For Bug Reports

Searching for strings that are less than 6 characters long does not return any results.

  • BookStack Version: 0.14.2
  • PHP Version: PHP 5.6.30-0+deb8u1
  • MySQL Version: 10.1.21-MariaDB-1~jessie
Expected Behavior

In my example I would like to search for content based on error codes, which are 4 character strings (example "F.15"). Search on those codes should return links to pages with descriptions for those codes.

Actual Behavior

Search for strings with less than 6 characters returns empty result set.

Originally created by @jernejpraprotnik on GitHub (Mar 2, 2017). ### For Bug Reports Searching for strings that are less than 6 characters long does not return any results. * BookStack Version: 0.14.2 * PHP Version: PHP 5.6.30-0+deb8u1 * MySQL Version: 10.1.21-MariaDB-1~jessie ##### Expected Behavior In my example I would like to search for content based on error codes, which are 4 character strings (example "F.15"). Search on those codes should return links to pages with descriptions for those codes. ##### Actual Behavior Search for strings with less than 6 characters returns empty result set.
Author
Owner

@ssddanbrown commented on GitHub (Mar 4, 2017):

Hi @jernejpraprotnik. Yeah, There are some issues in the search thus why #271 has been created. For now your can put your search term in quotes ("F.15") which should use an exact match and work for shorter search terms.

@ssddanbrown commented on GitHub (Mar 4, 2017): Hi @jernejpraprotnik. Yeah, There are some issues in the search thus why #271 has been created. For now your can put your search term in quotes (`"F.15"`) which should use an exact match and work for shorter search terms.
Author
Owner

@jernejpraprotnik commented on GitHub (Mar 7, 2017):

Hi @ssddanbrown. Thank you for your reply. Putting string in quotes works :)

@jernejpraprotnik commented on GitHub (Mar 7, 2017): Hi @ssddanbrown. Thank you for your reply. Putting string in quotes works :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#288