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.
This commit is contained in:
Dan Brown
2018-03-24 18:46:31 +00:00
parent 3df7d828eb
commit f101c1a622
5 changed files with 22 additions and 10 deletions

View File

@ -2,6 +2,7 @@
class Book extends Entity
{
public $searchFactor = 2;
protected $fillable = ['name', 'description', 'image_id'];