I wanted to know if there is a parameter in the search function. This parameter would allow searching only within specific categories. Yes, I know it can be done by typing the category name in the search bar, but I want to make things easier for my users.
I just made a test, and if you set the âprefixâ for â/search?context=category&context_id=YOUR_CATEGORY_ID_HERE&q=â, itâs works fine. hereâs a preview, using the category id 8 and searching for âlaraâ:
I tested it, and thanks to @David_Ghost for the help, but I donât find it intuitive to use. Iâll try to develop another approach. Itâs worth noting that users always compare everything to other software, and itâs already complicated enough to get them to come or stay
I was looking for a search feature that searches two categories simultaneously on the forum while staying on the forum page. If I understood correctly, this results in two search bars with a logo for each search type. Users already find using Discourse complicated, so Iâm trying to simplify the experience . The issue these days is that users compare everything to everything. Maybe Iâm using the component incorrectly.
What I wanted was to enter a search term and have the search engine look only within two configured categories.
Can you explain to me how the advanced search helps users to search across multiple categories at the same time? I remember bringing up the issue when the wiki and documentation were split, but I donât remember any changes since then.
Can you show to me where the OP asked about searching in specific categories at the same time?
From the translation, I understood that it is about being able to restrict search to specific categories, and that it was the same that is already possible via the search category operator, but in a more intuitive way
I donât want to create any problems; I know itâs not easy to find a perfect solution. Especially for me, the issue lies with users who arenât necessarily used to forums, unlike chat platforms. I know there are default filters, and that doesnât bother me at all since Iâm accustomed to them, but Iâm thinking of the beginner user. To make things even more complicated, theyâre often in a hurry
Iâm trying to find a solution for these users. My forum focuses on board games, and I have several categories covering all topics, except in two categories where I have game sheets.
I wanted to use the search bar only for game sheets.
Letâs say I have four categories: cat1, cat2, cat3, and cat4. My game sheets are located in cat2 and cat3.
When a user types âjeux1,â the search bar should, by default, search only within cat2 and cat3.
Thatâs my main challenge.
For me, this isnât a problem since Iâm familiar with the Discourse solution, but many users donât want to complicate things. They want a quick, hassle-free solution.
For me, the biggest issue is simplifying the experience for users. I love Discourse; I find the community amazing, as well as the Discourse developers. I appreciate what you do, but Discourse needs to adapt to different usage scenarios. Itâs not easy, and I understand that.
Would changing the search priority in the category settings work for you? That could make it way more likely for users to find topics from that category. You can experience that here on Meta by searching in support, which has a low priority so you find most topics from the subcategories like self-hosting.