nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.67k stars 4k forks source link

Advanced Unified Search using Search Options #30758

Open ArtificialOwl opened 2 years ago

ArtificialOwl commented 2 years ago

How to use GitHub

Is your feature request related to a problem? Please describe. It is a missing feature: advanced search in UnifiedSearch.

Describe the solution you'd like The first implementation would be to allow options within the text field, in the format option:value. The solution would be to extract those options from the term so the option won't be considered like a keyword by the apps answering to the search request:

As an example, the query-stringkeyword1 option1:value1 keyword2 will be transformed to keyword1 keyword2 while the option1:value1 will feed a SearchOptions model

Current PR is just a quick (and working) workflow. I would love some feedback on that solution from @nickvergessen and @ChristophWurst

joshtrichards commented 1 year ago

Related: https://framagit.org/StCyr/files_advancedsearch (mentioned in #30139 by @StCyr)