]> BookStack Code Mirror - bookstack/commit
Made search more efficient and tweaked weighting
authorDan Brown <redacted>
Sat, 24 Mar 2018 18:46:31 +0000 (18:46 +0000)
committerDan Brown <redacted>
Sat, 24 Mar 2018 18:46:31 +0000 (18:46 +0000)
commitf101c1a622fbce7e22ad94bc93b17f234cc841cb
treedda35a352567eaec451f09b3701ce347d855459f
parent3df7d828eb1134009d2d4bd65edc4ddffa750844
Made search more efficient and tweaked weighting

Added per-entity weighting changes.
Now Books score higher than chapters which score higher than pages.

Reduced queries required on search by only searching once but at a
higher count to see if there's another page.
app/Book.php
app/Chapter.php
app/Entity.php
app/Http/Controllers/SearchController.php
app/Services/SearchService.php