sismics / docs

Lightweight document management system packed with all the features you can expect from big expensive solutions
https://teedy.io
GNU General Public License v2.0
1.9k stars 486 forks source link

Tag search is not exact search #662

Open Crumar opened 1 year ago

Crumar commented 1 year ago

Situation: Version: v1.10 Deployment: Docker-Compose, using Portainer

I have two tags: -auto -auto-import

Actual behavior: On documents page, when I click in the hierarchy on auto, all files tagged with auto-import are also shown. This equates to filter "tag:auto".

Expected behaviour: Only show documents tagged with auto, not auto-import.

vmario89 commented 1 year ago

this is a known issue for known feature. i personally like it to not fully type the tag to receive some filtered results, but in your case i understand. maybe we need some kind of filter syntax:

maybe we could use > to find this and more (its like searching docs for date range) tag>blato find all things tagged with words like bla, blast, blablabla

and some explicite tag filter by using the : tag:blato find all things tagged with words like bla only

Crumar commented 1 year ago

Sounds good! I understand when for example using the search manually it may help a lot, but when navigating in the hierachy I'd expect to make an exact filter on tags.

chrisnoisel commented 9 months ago

Just chiming in to say I'd be interested in this enhancement, the less the confusion for the users, the better. Depending of the implementation complexity I would find something like this pretty intuitive :

tag:bla (strict)
tag:*bla (suffix)
tag:bla* (preffix)
tag:*bla* (any)