searchable icon indicating copy to clipboard operation
searchable copied to clipboard

What does it means?

Open essivision opened this issue 8 years ago • 3 comments

Hi What does it means number in eloquent example? protected $searchable = [`

   use Nicolaslopezj\Searchable\SearchableTrait;

class User extends \Eloquent {use SearchableTrait;

protected $searchable = [
    'columns' => [
        'first_name' => 10,
        'last_name' => 10,
        'bio' => 2,
        'email' => 5,
    ],
];

} `

essivision avatar Jan 18 '16 15:01 essivision

That's to set the priority or relevance rating of those specific columns in your search results.. It's pretty clear in the readme/documentation.

cwolfenberger avatar Feb 15 '16 15:02 cwolfenberger

+1

essivision avatar Feb 16 '16 13:02 essivision

I don't agree that it is clear in the documentation.

It's vague. I don't get what 10, 10, 2, 5, 2 and 1 means for the column values of first_name, last_name and so fort. As this issue #122.

Please make it clearer.

doncadavona avatar Oct 16 '16 12:10 doncadavona