Automattic / Automattic/WP-Job-Manager

Allow 'OR' for tags AND keywords in searches

Open
#1,707 13 comments 0 reactions 0 assignees View on GitHub
Customer Report Enhancement
Dominant language
PHP
Stars
899
Forks
369
Avg merge
11h 37m
Merged PRs (30d)
12

Description

Hi,

there are several other open issues in regards to the search but - imho - none of them describes this issue. Let me know if this is something already suggested.

**How to reproduce**
1. Search for a keyword which doesn't find anything.
2. Don't remove the keyword from the search and add a tag.
3. No result will be shown.
4. Remove the keyword and results for the tag will be shown.

**I expected** to see the result of the search including the keyword (0 results) and the tag (several results).

As it was explained to me, **the reason** for this:
So the way the Keywork + Tags search work is what we call in programming an AND combination. I.e. the results listed will have both the Keyword plus the Tag which the user has selected. What you are looking for is an OR search result. i.e the results should list Jobs containing any one of the Keyword or the Tag

Since there is already an option in the backend for the tags - just include the keywords a user might search for in this option or duplicate this option + add the keywords to allow more specific customization for end users. -> https://prnt.sc/n4j66c

**The reason, why I'd like to see this added:** A mutual user won't remove the keyword from the search. The user will see: "Oh, no results. Ok, so let's try the job tags provided." Unfortunately, since no results are shown (even if the job tags would provide jobs), the user will leave the website having the impression of "currently no jobs are available at all".

Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the four search steps described in the issue and inspect the existing backend option for tag searches linked in the report. Done means a search combining a zero-result keyword with a tag returns the tag matches, while preserving the keyword-only behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.