From d3bab2129bdae17ab0bda2ce49c0d1168e7d374f Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 8 Sep 2020 22:26:30 -0100 Subject: [PATCH] Update search.rst --- developer_manual/digging_deeper/search.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/developer_manual/digging_deeper/search.rst b/developer_manual/digging_deeper/search.rst index 99dc1c538..2b72be6df 100644 --- a/developer_manual/digging_deeper/search.rst +++ b/developer_manual/digging_deeper/search.rst @@ -142,9 +142,9 @@ The result is encapsulated in the ``SearchResult`` class that offers two static namespace OCA\MyApp\Search; - use OCP\Search\ASearchResultEntry; + use OCP\Search\SearchResultEntry; - class MySearchResultEntry extends ASearchResultEntry {} + class MySearchResultEntry extends SearchResultEntry {} The above snippet shows this implementation of a result entry. Again, this class should be saved to ``lib/Search`` in the app directory. @@ -183,7 +183,7 @@ Next, you'll see a dummy provider that returns a static set of results using the } public function search(IUser $user, ISearchQuery $query): SearchResult { - return MySearchResultEntry::complete( + return SearchResult::complete( $this->l10n->t('My app'), [ new MySearchResultEntry(