==== Background ====
There has recently been feedback/request by GLAM pilot partners for Growth for the ability to use "AND" logic in the suggested edits topic selector, rather than it's currently using "OR". For instance, they want to be able to filter the feed to articles that have high scores on both "History" and "South America".
==== Problem ====
Extrapolating from the feedback, this is a request for more granular topic results (for which changing the logic from AND to OR may or may not be a solution).
The resulting solution may also mitigate {T242476}
==== User job stories for topic filtering
**Newcomer without an edit in mind** ([[ https://upload.wikimedia.org/wikipedia/commons/a/ae/New_Editor_Experiences_user_personas%2C_August_2017.pdf | Personas ]]: Joiner-Inner, Reactive Corrector, Box Checker)
| {icon laptop} {icon mobile} | As a newcomer who wants to get started editing with no specific interests in mind... |
|--|--|--
| When I | see that I can select topic interests, | //(situation)//
| I want to | be able to choose general interest topics that provide a number of results, | //(motivation)//
| so that | I can browse and choose from a good selection of articles to start making contributions and learn how to edit in general. | //(expected outcome)//
**GLAM/Special interest newcomers** ([[ https://upload.wikimedia.org/wikipedia/commons/a/ae/New_Editor_Experiences_user_personas%2C_August_2017.pdf | Personas ]]: Knowledge Sharer, Social Changer)
| {icon laptop} {icon mobile} | As a newcomer who wants to get started editing with no specific interests in mind... | //Newcomer without an edit in mind//
|--|--|--
| When I | see that I can select topic interests, | //(situation)//
| I want to | to be able to narrow down the results to specific topics particular to my interest/expertise, | //(motivation)//
| so that | I can more engaged and confident in editing on a subject in which I am familiar. | //(expected outcome)//
====Notes from @kostajh's task (T297092)
Several months ago a volunteer [filed a feature request](https://www.mediawiki.org/wiki/Topic:Wgmfkjdheiihqybr) to narrow tasks with the topic selector:
> Currently the filtering options only add new groups of articles, and don't find articles that meet certain criteria. It would be valuable to have the ability to filter to only Transportation articles in Asia for example.
Our team discussed it in chat, and some concerns are:
* A major downside to changing filters to use OR logic instead of AND is that there will be far fewer articles in the filtering process, so if we were to introduce this i'd imagine it would as a more advanced filtering option rather than replacing the default OR logic in use right now.
* a tricky concept UX concept, esp as people come to expect smarter filtering/searches (to just know when they mean AND vs OR)
An alternative to AND'ing the topics together is to add a freetext form field so people can find tasks matching arbitrary searches (which could include topic filters). Users might end up not finding articles in the topics they care about because they have wrong keyword, but maybe freeform search that provides auto-completion for topics (but allows arbitrary strings too)... so, if the user types "train" that would be a freetext search, but if they start typing "tra" and select the autocompletion for "Transportation (Topic)" that becomes a hastopic:transportation search, and as more topics are added in the search, they are ANDed together.
==== Proposed designs
TBC - work-in-progress figma is [[ https://www.figma.com/file/Pgo6fPGaDDiqXWGfMI8oiF/?node-id=957%3A82278 | here ]]
**Proposal B from T301028**
- Addition of separate advanced filtering functionality that is accessed as a separate tab, where Campaigns or other filter sets can be saved in the "saved filters" dropdown
- Ability to chain AND and OR filters
- This proposal could work in parallel with the Campaigns filter group in the main topics tab in T301028
- Nice to have: If a particular campaign filter tag is selected when the user switches to the advanced “AND” filtering tab view, then the specific query is shown on the screen already.
- Potential to re-use Recent changes filter tag functionality
{F34946901}