nextcloud / fulltextsearch_elasticsearch

🔍 Use Elasticsearch to index the content of your Nextcloud

Home Page:https://apps.nextcloud.com/apps/fulltextsearch_elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some usability proposals

zell-mbc opened this issue · comments

After tearing out the little hair I got left over the last days I thought I'd propose a few usability enhancements for this plugin if I may?

When one navigates to the search page it's all empty, how about showing some high level facts?
For a regular user I could think of:

  • Your search results may be incomplete because initial indexing is still running
  • Your search results may be incomplete because the server ran out of disk space
  • Index is current and healthy
  • There are # documents in your index

For users of the admin group messages there could be additional and more technical stats:
Index status:

  • green open .geoip_databases QuLI1AT3Q0eAlIOt-MJokw 1 0 41 0 38.7mb 38.7mb
  • yellow open nextcloud wNX1vrbZT7Ges-imLcf2QA 1 1 386057 1 852.3mb 852.3mb
  • Last update to the index at …
  • Warning! low disk watermark [85%] hit on node 1, index incomplete
  • And whatever other meaningful stats reflecting the health of the index can be displayed

This status information would have saved me hours, especially the low disk watermark, while I was trying to understand why search didn't deliver any results, or just partial.

The way I envisage this could work is that those facts will be shown every time one navigates to the search page, and simply be overwritten by the search results.

image

And maybe add a verbose switch to the settings page, defaulting to off, so these facts will only show with verbose on. That way things stay as they are today for people which like the empty page :-)

Also, how about a control which sets the number of document hits shown per page? E.g. 10/100/all