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

Closed
opened 2026-02-04 20:04:25 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @DagW on GitHub (Sep 28, 2017).

For Bug Reports

  • BookStack Version: v0.18.1
  • PHP Version:
  • MySQL Version:

I added some text about trello,
tried to search for 'trello' -> No matches
tried to search for '"trello"' -> 1 match

Expected Behavior

To find the trello word without qoutes

Actual Behavior

Did not find the word

Originally created by @DagW on GitHub (Sep 28, 2017). ### For Bug Reports * BookStack Version: v0.18.1 * PHP Version: * MySQL Version: I added some text about trello, tried to search for 'trello' -> No matches tried to search for '"trello"' -> 1 match ##### Expected Behavior To find the trello word without qoutes ##### Actual Behavior Did not find the word
Author
Owner

@ssddanbrown commented on GitHub (Sep 28, 2017):

Hi @DagW, Thanks for raising this issue. In your content, is trello a word by itself (With only spaces around it) or is it part of more text such as trello-cat or mytrello?

@ssddanbrown commented on GitHub (Sep 28, 2017): Hi @DagW, Thanks for raising this issue. In your content, is `trello` a word by itself (With only spaces around it) or is it part of more text such as `trello-cat` or `mytrello`?
Author
Owner

@DagW commented on GitHub (Sep 29, 2017):

" trello " would be a word by itself, with spaces around it.
Also if the line starts with "trello "
Thanks, love the app otherwise. Im trying to work it in as the main documentation platform :-)

@DagW commented on GitHub (Sep 29, 2017): " trello " would be a word by itself, with spaces around it. Also if the line starts with "trello " Thanks, love the app otherwise. Im trying to work it in as the main documentation platform :-)
Author
Owner

@ssddanbrown commented on GitHub (Sep 30, 2017):

After a deeper dive it looks like there were some indexing issues when words are at the start of a line or when after tabs.

I've updated the indexing to be smarter, Will be part of the next bugfix release (Hopefully deploying sometime this weekend).

Let me know after the update if this does not fix your issues and I'll re-open this.

@ssddanbrown commented on GitHub (Sep 30, 2017): After a deeper dive it looks like there were some indexing issues when words are at the start of a line or when after tabs. I've updated the indexing to be smarter, Will be part of the next bugfix release (Hopefully deploying sometime this weekend). Let me know after the update if this does not fix your issues and I'll re-open this.
Author
Owner

@yapret commented on GitHub (Oct 12, 2017):

Hi @ssddanbrown, I'm running the v0.18.3, and still seem to encounter this (or a very similar) problem.

I prefix page titles with words surrounded by brackets like [TRELLO], but can only find them when the said word is searched with quotes.

@yapret commented on GitHub (Oct 12, 2017): Hi @ssddanbrown, I'm running the v0.18.3, and still seem to encounter this (or a very similar) problem. I prefix page titles with words surrounded by brackets like [TRELLO], but can only find them when the said word is searched with quotes.
Author
Owner

@ssddanbrown commented on GitHub (Oct 15, 2017):

@yapret Thanks for raising, Just about to deploy a release that splits on more characters include brackets.

After updating to v0.18.4 you'll need to regenerate the search index to see the effects:

php artisan bookstack:regenerate-search
@ssddanbrown commented on GitHub (Oct 15, 2017): @yapret Thanks for raising, Just about to deploy a release that splits on more characters include brackets. After updating to v0.18.4 you'll need to regenerate the search index to see the effects: ```shell php artisan bookstack:regenerate-search ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#445