X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/62342433f41f2eaef19c5e85f5ce960297ee8206..refs/pull/846/head:/app/Entity.php diff --git a/app/Entity.php b/app/Entity.php index 1ea4e8dac..67edec4e0 100644 --- a/app/Entity.php +++ b/app/Entity.php @@ -5,8 +5,16 @@ use Illuminate\Database\Eloquent\Relations\MorphMany; class Entity extends Ownable { + /** + * @var string - Name of property where the main text content is found + */ public $textField = 'description'; + /** + * @var float - Multiplier for search indexing. + */ + public $searchFactor = 1.0; + /** * Compares this entity to another given entity. * Matches by comparing class and id.