Skip to content

Search Results are completely Irrelevant #2840

@vampirismtrueblood

Description

@vampirismtrueblood

Describe the bug
When searching for anything even with the EXACT string, it still displays completely wrong results, I will post screenshots of both My mediawiki and Bookstack to help show the algorithm difference

Running version: BookStack v21.05.3 container (Yes, i added the fix term like % $searchterm % makes absolutely no difference with and without)

Both my bookstack and Mediawiki are in absolute sync, both have same exact articles of 1790+

I ran php artisan bookstack:regenerate-search BEFORE and AFTER % $searchterm %

Bookstack will only give correct results if:

  1. Enclosed within double-quotes "search word(s)"
  2. Must be matching the same exact order of keywords in the actual page title

Steps To Reproduce
Steps to reproduce the behavior:

  1. Search for a page
  2. Click on "Enter" or search

Expected behavior
Get Pages with top matching score as first results

Screenshots
Test ONE
Bookstack (completely irrelevant results)
image

Mediawiki (Perfectly accurate)
image

Test TWO (Notice the sequence of keywords used vs actual page name
Bookstack (Completely irrelevant results)
image

Mediawiki (Perfectly accurate again)
image

Test THREE (Exact Title Match)
Bookstack (Completely irrelevant results)
image

Mediawiki (Perfect match)
image

Your Configuration (please complete the following information):
BookStack v21.05.3 container

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions