Search terms ignored #726

Closed
opened 2026-02-04 22:04:29 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @BenjaminLange on GitHub (Jun 22, 2018).

For Feature Requests

Desired Feature:

For Bug Reports

  • BookStack Version (Found in settings, Please don't put 'latest'): 0.22.0
  • PHP Version: 7.0.30
  • MySQL Version: MariaDB 10.0.34
Expected Behavior

Searching using terms such as new employee should return results with the page "New Employee" at the top.

Current Behavior

The search results contain every page in the database. They appear to be sorted only by creation date and ignore all search terms.

Steps to Reproduce

Search using any terms.

Originally created by @BenjaminLange on GitHub (Jun 22, 2018). ### For Feature Requests Desired Feature: ### For Bug Reports * BookStack Version *(Found in settings, Please don't put 'latest')*: 0.22.0 * PHP Version: 7.0.30 * MySQL Version: MariaDB 10.0.34 ##### Expected Behavior Searching using terms such as new employee should return results with the page "New Employee" at the top. ##### Current Behavior The search results contain every page in the database. They appear to be sorted only by creation date and ignore all search terms. ##### Steps to Reproduce Search using any terms.
Author
Owner

@ssddanbrown commented on GitHub (Jul 1, 2018):

Hi @BenjaminLange,
Are you able to re-produce this on the demo site at all (https://demo.bookstackapp.com/login?email=admin@example.com&password=password)?

Expected results should contain at least one of your search terms. Is New Employee your exact search term you can re-produce this issue on and does that include quotes?

@ssddanbrown commented on GitHub (Jul 1, 2018): Hi @BenjaminLange, Are you able to re-produce this on the demo site at all (https://demo.bookstackapp.com/login?email=admin@example.com&password=password)? Expected results should contain at least one of your search terms. Is `New Employee` your exact search term you can re-produce this issue on and does that include quotes?
Author
Owner

@BenjaminLange commented on GitHub (Jul 12, 2018):

@ssddanbrown, it seems to be working fine on the demo site, so this may be an issue with my sepcific configuration.

I get the same results if I search with quotes or without quotes. Do you have any tips on where to start with troubleshooting?

@BenjaminLange commented on GitHub (Jul 12, 2018): @ssddanbrown, it seems to be working fine on the demo site, so this may be an issue with my sepcific configuration. I get the same results if I search with quotes or without quotes. Do you have any tips on where to start with troubleshooting?
Author
Owner

@ssddanbrown commented on GitHub (Jul 14, 2018):

@BenjaminLange This is very strange.

Can you try going to a specific book and, using the search in the sidebar, try searching for a term within just a single book? Would be interested to see if that has the same issue.

@ssddanbrown commented on GitHub (Jul 14, 2018): @BenjaminLange This is very strange. Can you try going to a specific book and, using the search in the sidebar, try searching for a term within just a single book? Would be interested to see if that has the same issue.
Author
Owner

@BenjaminLange commented on GitHub (Jul 15, 2018):

@ssddanbrown I experience similar results when searching in a specific book. I think the sort is reversed when compared to the results from performing a normal search.

@BenjaminLange commented on GitHub (Jul 15, 2018): @ssddanbrown I experience similar results when searching in a specific book. I think the sort is reversed when compared to the results from performing a normal search.
Author
Owner

@aidanfindlater commented on GitHub (Aug 15, 2019):

@BenjaminLange did you ever get this worked out? I'm having a similar issue, on BookStack v0.26.4, mariadb 10.3.15, php 7.3.

@aidanfindlater commented on GitHub (Aug 15, 2019): @BenjaminLange did you ever get this worked out? I'm having a similar issue, on BookStack v0.26.4, mariadb 10.3.15, php 7.3.
Author
Owner

@BenjaminLange commented on GitHub (Aug 15, 2019):

Hi @aidanfindlater, unfortunately, I never found a solution. Other requirements caused me to move to another tool.

@BenjaminLange commented on GitHub (Aug 15, 2019): Hi @aidanfindlater, unfortunately, I never found a solution. Other requirements caused me to move to another tool.
Author
Owner

@aidanfindlater commented on GitHub (Aug 16, 2019):

Figure it out, for me at least. I had misconfigured nginx. I just had to make sure that the try_files command was exactly as described in the documents ("try_files $uri $uri/ /index.php?$query_string;") and all works as expected.

@aidanfindlater commented on GitHub (Aug 16, 2019): Figure it out, for me at least. I had misconfigured nginx. I just had to make sure that the try_files command was exactly as described in the documents ("try_files $uri $uri/ /index.php?$query_string;") and all works as expected.
Author
Owner

@ssddanbrown commented on GitHub (Aug 17, 2019):

Since the original poster has moved to another tool, And since other solutions have been discussed, I'll go ahead and close this.

@ssddanbrown commented on GitHub (Aug 17, 2019): Since the original poster has moved to another tool, And since other solutions have been discussed, I'll go ahead and close this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#726