Automattic / Automattic/WP-Job-Manager

Search results for "location" field when the location query is descriptive

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

Description

When a job "location" is set as a city (e.g. "London") and the search query contains city + country (e.g. London, United Kingdom) the search yields no result even though jobs related to those city exists.

![image](https://user-images.githubusercontent.com/10553273/57947382-318c1f80-78f8-11e9-9040-872c38d8f214.png)
![image](https://user-images.githubusercontent.com/10553273/57947755-31d8ea80-78f9-11e9-8fc4-f1c12f34bcd9.png)

Ideally, it should give consistent results in both cases.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by creating or finding a job whose location is "London", then search for both "London" and "London, United Kingdom". Compare the results and trace the location-search entry point; done means the descriptive city-and-country query returns the same relevant jobs as the city-only query.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.