BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Search: Provide additional ranking boost for content that matches more of the search terms

Open hieste opened this issue 2 years ago • 2 comments

Describe the Bug

You wrote in your docu:

"Normal word searches across the name and description or body of your content. When mulitple terms are searched only one term has to match your content but content containing both terms will be higher in the results."

Also on your demo site:

image

In the Page on the first Position there is no word Magnam in the content or tag... First Position should be: image

But this functionality do not work like expected. If you search for 3 Terms the result gets worser... So it is very hard to find the right content, because search string is always connected with "OR" and not "AND"....

Steps to Reproduce

  1. Search with 2 Terms, like: demo magna

Expected Behaviour

Content containing both terms should be on the highest Position. Also if you use 3 or more terms...

Screenshots or Additional Context

No response

Browser Details

Chrome

Exact BookStack Version

23.10.4

hieste avatar Dec 15 '23 10:12 hieste

Hi @hieste, The wording in the docs leaves out a lot of additional complexity which can affect rankings. Content containing both terms will rank higher than other page where just one term is used in the same way, but frequency and location can also have a large impact on ranking.

I agree that it would be ideal though if we could specifically provide a score/rank boost for content that has more of the searched terms. I'll update the title to reflect that request, and re-label this since it's really an request for enhancement to the existing system rather than a break in existing functionality.

ssddanbrown avatar Dec 15 '23 14:12 ssddanbrown

Hello Dan,

thank you for your thoughts. I think with this addition/change the search within Bookstack is extremely improved in an instance with many pages.

Great work.

Thanks a lot... Stefan

hieste avatar Dec 15 '23 15:12 hieste