searches that starts with a dot gets no results #584

Closed
opened 2026-02-04 21:19:23 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Evoolo on GitHub (Mar 1, 2018).

Hi all,

if i have a string on a page like ".test" and search for it, i get no results.

I tried several other symbols, it seems to be only an issue with the dot.

Any easy way to fix this?

Thanks!

Originally created by @Evoolo on GitHub (Mar 1, 2018). Hi all, if i have a string on a page like ".test" and search for it, i get no results. I tried several other symbols, it seems to be only an issue with the dot. Any easy way to fix this? Thanks!
Author
Owner

@ssddanbrown commented on GitHub (Mar 10, 2018):

Hi @Evoolo,

The search system works by breaking up the text on a range of characters, A list of which can be seen here in the code. This includes the . which means that what you are seeing is correct (Although annoying for your use case).

Alternatively you can quote search terms, like ".test" for example, to run a deeper less efficient search that will pick up searches with dots in them.

Let me know if that works for you.

@ssddanbrown commented on GitHub (Mar 10, 2018): Hi @Evoolo, The search system works by breaking up the text on a range of characters, A [list of which can be seen here](https://github.com/BookStackApp/BookStack/blob/master/app/Services/SearchService.php#L399) in the code. This includes the `.` which means that what you are seeing is correct (Although annoying for your use case). Alternatively you can quote search terms, like `".test"` for example, to run a deeper less efficient search that will pick up searches with dots in them. Let me know if that works for you.
Author
Owner

@ssddanbrown commented on GitHub (Sep 23, 2018):

Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and the above did not work out for you please comment and this can be reopened if required.

@ssddanbrown commented on GitHub (Sep 23, 2018): Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and the above did not work out for you please comment and this can be reopened if required.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#584