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

30 lines
690 B
PHP
Raw Normal View History

<?php
final class PhabricatorUserFerretEngine
extends PhabricatorFerretEngine {
public function newNgramsObject() {
return new PhabricatorUserFerretNgrams();
}
public function newDocumentObject() {
return new PhabricatorUserFerretDocument();
}
public function newFieldObject() {
return new PhabricatorUserFerretField();
}
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;
}
}