Skip to content

How can I display more accurate results using the search extension? #748

Discussion options

You must be logged in to vote

Here's what we discussed on Discord. The search extension is roughly divided into two parts. The first part is the logic that searches trough all pages and calculates a "searchScore" based on text and meta data. The second part is the visualisation that loops trough stored pages and generates output from the "beginning of page content" converted to text.

If someone wants to display a more accurate text excerpt from a page, here some thoughts and ideas:

  • The logic needs a function to extract the "relevant page content" for each page and store it together with the calculated "search score". The code that stores the search score is at $pageSearch->set("searchscore", $searchScore) in file sea…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@schulle4u
Comment options

schulle4u Apr 2, 2022
Maintainer Author

Answer selected by schulle4u
Comment options

schulle4u
May 16, 2022
Maintainer Author

You must be logged in to vote
1 reply
@annaesvensson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants