1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 12:12:43 +01:00
phorge-phorge/src/applications/people/search/PhabricatorUserFerretEngine.php

26 lines
545 B
PHP
Raw Normal View History

<?php
final class PhabricatorUserFerretEngine
extends PhabricatorFerretEngine {
public function getApplicationName() {
return 'user';
}
public function getScopeName() {
return 'user';
}
public function newSearchEngine() {
return new PhabricatorPeopleSearchEngine();
}
public function getObjectTypeRelevance() {
// Always sort users above other documents, regardless of relevance
// metrics. A user profile is very likely to be the best hit for a query
// which matches a user.
return 500;
}
}