tournesol icon indicating copy to clipboard operation
tournesol copied to clipboard

[front] full-text search: how to handle properly the filters?

Open GresilleSiffle opened this issue 2 years ago • 3 comments

See the original PR: #1039

14 (to deliberate) - Shouldn't the frontend someway automatically remove the date filter "A month ago" to return more results? This is especially important because people (including the past me) may not realize that they get very few results because of this filter.

For instance, YouTube resets all filters after a textual search.

ideas

searching from the recommendations page, with unfolded filters should not alter filters

? searching from the recommendations page, with folded filters can reset all filters (except the languages?) ?

searching from elsewhere should reset all filters (except the languages)

GresilleSiffle avatar Jul 13 '22 10:07 GresilleSiffle

What about the "unsafe" filter?

I understand that by default unsafe videos should be filtered. But it could also be disturbing if you search for a specific video and don't find it because it's badly ranked, or not rated by enough contributors yet.

glerzing avatar Jul 26 '22 20:07 glerzing

I suggest that when no (or few) result is found, there would be a small sentence that suggests to try without date filter or without safety filter, with buttons to deactivate these filters (or only the buttons, with a short descriptions inside).

For example, if there are only 3 "safe" results but 5 "unsafe" results, then there could be, at the bottom of the page, this note and these buttons. Ideally, it would display how many videos were filtered this way (and if none, neither the note nor the button would be displayed), but that would also need some backend rework and could be detrimental for the backend performances.

This could be useful when using the search bar, but also when using the channel filter, so there are 2 use cases where it's important:

image

glerzing avatar Aug 07 '22 00:08 glerzing

TODO:

  • [ ] Investigate possible problems with filters and search
  • [ ] Describe them
  • [ ] Discuss them
  • [ ] Correct them

lfaucon avatar Aug 31 '22 10:08 lfaucon

Seems that the above ideas have been implemented

lfaucon avatar Jan 28 '23 10:01 lfaucon