callmemagnus / nextcloud-searchpage

App for Nextcloud providing a proper search page
7 stars 3 forks source link

Prioritise the list of providers #14

Closed ostasevych closed 10 months ago

ostasevych commented 10 months ago

I suggest to prioritise the list of providers in the drop-down selector according to the order of apps on the navigation bar, eg usually Files is more prioritised.

callmemagnus commented 10 months ago

This app just uses the list of providers returned by your instance (/ocs/v2.php/search/providers) and then uses the search API (/ocs/v2.php/search/providers//search?term=admin).

The list is ordered somehow. Don't know where that order comes from.

ostasevych commented 10 months ago

This app just uses the list of providers returned by your instance (/ocs/v2.php/search/providers) and then uses the search API (/ocs/v2.php/search/providers//search?term=admin).

The list is ordered somehow. Don't know where that order comes from.

I see... I've created a feature request at https://github.com/nextcloud/server/issues/41243 Perhaps it is possible to analyse other user or admin settings as a workaround?

callmemagnus commented 10 months ago

This is what the endpoint returns:

image

There is definitely something somewhere.

If one day get comfortable with the whole nextcloud backend code, I might add a configuration panel for admins to define order and mask providers.