Skip to content

Commit b3d7c6f

Browse files
committed
Fix search weighting for servers
1 parent 21a78f4 commit b3d7c6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/Models/Server.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ class Server extends Model implements CleansAttributes, ValidableContract
119119
* @var array
120120
*/
121121
protected $searchableColumns = [
122-
'name' => 10,
123-
'uuidShort' => 9,
124-
'uuid' => 8,
125-
'pack.name' => 7,
126-
'user.email' => 6,
127-
'user.username' => 6,
128-
'node.name' => 2,
122+
'name' => 50,
123+
'uuidShort' => 10,
124+
'uuid' => 10,
125+
'pack.name' => 5,
126+
'user.email' => 20,
127+
'user.username' => 20,
128+
'node.name' => 10,
129129
];
130130

131131
/**

0 commit comments

Comments
 (0)