Automattic / Automattic/jetpack

Search: Allow for partial matching of words in Arabic

Open
#23,676 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Search [Focus] i18n [Plugin] Jetpack [Pri] Low Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

Example 1:
The title of this page (https://qanoon.om/p/2020/rd2020088/) has the word بدمج (to merge) which I should be able to locate by searching for the word دمج, but as you can see, that page cannot be found at all in the results (https://qanoon.om/?s=%D8%AF%D9%85%D8%AC) .

Example 2:
The title of this page (https://qanoon.om/p/2008/l2008065/) has the word المجاورة (the neighbouring) which I should be able to locate by searching for the word مجاورة, but as you can see that page cannot be found at all in the results (https://qanoon.om/?s=%D9%85%D8%AC%D8%A7%D9%88%D8%B1%D8%A9&sort=relevance) .

### A clear and concise description of what you expected to happen.

In Arabic, there are frequently prefixes attached to words, such as for definite articles, e.g. "the book", would be written as "thebook". Searching for "book" should find documents both with and without definite articles

### What actually happened

Instead, if you search for "book", only documents with "book" are returned, and not "thebook".

This issue must be addressed at the indexing / querying level.

### Other information

_No response_

### Operating System

Windows, macOS, Linux, Android, iOS

### OS Version

all

### Browser

Chrome/Chromium, Firefox, Microsoft Edge, Microsoft Edge (legacy), Safari

### Browser Version(s)

all

Contributor guide

Open the contributing guide

Research direction

Start with Jetpack's search indexing and querying behavior, as the issue identifies that layer as the target. Reproduce the Arabic examples using the provided URLs and verify that searches for words without attached prefixes return results containing both prefixed and unprefixed forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, search
Issue type
Bug
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.