]> BookStack Code Mirror - bookstack/commit
Added page content parsing to up-rank header text in search
authorDan Brown <redacted>
Fri, 12 Nov 2021 13:47:23 +0000 (13:47 +0000)
committerDan Brown <redacted>
Fri, 12 Nov 2021 13:47:23 +0000 (13:47 +0000)
commitf28daa01d9d43d36c12b075bddca92be9e8f85e4
tree2a6199a983ffc7791dad1c403056089c610ee750
parent820be162f5bfb31f69f0122a61755fdd8623275f
Added page content parsing to up-rank header text in search

This adds parsing of page content so that headers apply a boost to
scores in the search term index.
Additionally, this merges title and content terms to reduce the amount
of stored terms a little.
Includes testing to cover.
app/Entities/Models/Book.php
app/Entities/Models/Bookshelf.php
app/Entities/Models/Chapter.php
app/Entities/Models/Entity.php
app/Entities/Models/Page.php
app/Entities/Repos/PageRepo.php
app/Entities/Tools/SearchIndex.php
tests/Entity/EntitySearchTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.