LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
12.95k stars 861 forks source link

Advanced Search and Tag Filtering #3788

Open 8ullyMaguire opened 11 months ago

8ullyMaguire commented 11 months ago

Requirements

Is your proposal related to a problem?

Yes, the current tagging system in Lemmy lacks advanced filtering options, making it difficult for users to find and organize content based on specific tag combinations. This feature request aims to address this limitation by proposing the implementation of advanced tag filters, similar to those found in image organizing programs^1 and booru-style image boards^2.

Describe the solution you'd like.

I propose the addition of advanced tag filtering options in Lemmy, allowing users to:

  1. Hide posts with chosen tags.
  2. Show posts where all chosen tags exist.
  3. Show posts with at least one of the chosen tags.
  4. Show posts with at least one of the chosen tags but exclude ones that have chosen unwanted tags.

Additionally, it would be helpful to allow users to save presets and give them names for easy access to their preferred filtering options.

image image image image

This feature request is inspired by the advanced filtering options found in the UI of an image organizing program mentioned by @M4rtineski in the original comment^1 and the booru-style image view, search, and tagging system discussed in issue #3626.

Describe alternatives you've considered.

An alternative solution could be to integrate third-party tools or libraries that offer advanced tag filtering options. However, implementing a native solution within Lemmy would provide a more seamless user experience and better integration with the platform's existing features.

Additional context

Advanced tag filtering options have proven to be successful in other platforms, such as booru-style image boards^2 and image organizing programs^1. Implementing these features in Lemmy would enhance the user experience by allowing users to find and organize content more efficiently based on their preferences.

Related

8ullyMaguire commented 11 months ago

Also for the frontend, I would like to be able to choose to search either from buttons like shown in the images above or with syntax similar to this, but I don't know if this would require doing anything different in the backend so I mention it here.

References:

8ullyMaguire commented 11 months ago

[Feature request] Search operator support in Lemmy search

It goes like this:

YousufSSyed commented 10 months ago

I'd like to have Reddit's search operators on Lemmy too: https://www.reddit.com/wiki/search/.

ludrol commented 10 months ago

Request for change by @Neshura87 that was written based on #317

This is similar proposal but we would need to choose one for implementation.