BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Search terms ignored

Open BenjaminLange opened this issue 8 years ago • 8 comments

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.

BenjaminLange avatar Jun 22 '18 20:06 BenjaminLange

Hi @BenjaminLange, Are you able to re-produce this on the demo site at all (https://demo.bookstackapp.com/[email protected]&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 avatar Jul 01 '18 14:07 ssddanbrown

@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 avatar Jul 12 '18 17:07 BenjaminLange

@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 avatar Jul 14 '18 08:07 ssddanbrown

@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 avatar Jul 15 '18 01:07 BenjaminLange

@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 avatar Aug 15 '19 16:08 aidanfindlater

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

BenjaminLange avatar Aug 15 '19 17:08 BenjaminLange

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 avatar Aug 16 '19 18:08 aidanfindlater

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

ssddanbrown avatar Aug 17 '19 09:08 ssddanbrown