Follow an Arabic search phrase from the document to the index
A document can contain correct Arabic and still be impossible to find through Arabic search. Reviewing its typography or translating the search button will not reveal whether the indexing process retained the words the reader needs.
This worked example uses a fictional supplier library. The task is deliberately narrow: an authorised staff member must find the current instruction for a sealing kit using either its approved Arabic description or its stable reference. The investigation follows the same source through indexing, querying and the returned document.
Define the intended result before changing search
The source owner approves document D-28, revision R3, for kit SK-28. Its searchable description is حلقة إحكام, meaning a sealing ring in this example. The term is approved for this fictional collection; a different organisation would need its own terminology review.
Staff member U-4 may read D-28. An earlier R2 is retained in controlled history but must not be returned as the current instruction. A separate document D-31 covers reference SP-31 and description نابض ضغط. Customer account C-6 has no permission to view the staff library.
These distinctions keep the acceptance question precise. Finding any Arabic document is insufficient. The result must be the authorised current instruction associated with the intended reference.
Hold the source constant
The reviewer opens the stored D-28 record and its actual document. The Arabic description and SK-28 reference are present. Copying the phrase from the approved record produces the expected characters. Searching by SK-28 returns D-28/R3, but searching for حلقة إحكام produces no result.
The next observation is the indexed token set, not a new translation:
| Boundary | Observed content before repair |
|---|---|
| Approved description | حلقة إحكام |
| Stable reference | SK-28 |
| Source string supplied to the indexer | SK-28 حلقة إحكام |
| Tokens retained by the indexer | sk, 28 |
| Tokens from the exact Arabic query | None |
| Result of the stable-reference query | D-28, current revision R3 |
The source and receiving document are not missing. The indexing step has discarded the Arabic words.
Locate the exclusion rule
The inspected implementation extracts tokens using the pattern [A-Za-z0-9]+, then lowercases them. That character range admits Latin ASCII letters and digits. It does not include the Arabic letters in the approved phrase. The same rule runs when the query is analysed, so both document and query lose their Arabic content.
The search owner selects a supported Unicode-aware tokenizer for this bounded Arabic/English collection. The implementation retains letters, combining marks and numbers as appropriate to the agreed token rules. Stable reference handling remains explicit, including the relationship between SK-28 and its reference tokens.
ECMAScript's text-processing specification defines Unicode-property matching for regular expressions. That capability can support character inclusion; it does not by itself establish a complete Arabic search strategy. Stemming, spelling variation, diacritic policy, synonyms and relevance ranking are separate decisions. None is needed to explain the exact phrase that the old ASCII rule removed.
Rebuild from approved records
Changing the query tokenizer alone cannot restore words absent from the existing index. The maintainer rebuilds the affected collection from unchanged approved records using the selected tokenizer. The source owner checks that D-28 still identifies R3, that access metadata is retained and that the withdrawn R2 has not been promoted during rebuilding.
The new token set for the demonstration includes sk, 28, حلقة and إحكام. The reader's exact two-word query now reaches the same record as the reference query. The result shows the current revision and opens the intended instruction for U-4.
The repair is not permission to reconstruct identity from similar words. SK-28 remains the stable product reference, and D-28 remains the document identity. The Arabic phrase supplies an additional supported discovery path to that approved relationship.
Check a result that should differ
The reviewer records the following completed checks in the fictional test collection:
| Query and reader | Accepted result after rebuilding |
|---|---|
| U-4 searches حلقة إحكام | D-28/R3; opened content and reference match |
| U-4 searches SK-28 | The same D-28/R3 |
| U-4 searches نابض ضغط | D-31, associated with SP-31; not D-28 |
| U-4 searches SP-31 | D-31 with its approved current revision |
| U-4 searches an absent approved-test phrase | No supported result; no guessed substitute |
| U-4 requests withdrawn R2 through current search | R2 is not offered as current |
| C-6 searches either phrase or requests D-28 directly | Staff content remains unavailable |
The distinct phrase and reference establish that the correction has not made every Arabic query return the first available record. The access check establishes a separate requirement: improving discovery must not expand who can read the source.
Decide what the evidence allows you to say
The bounded result is that the inspected index now includes the approved Arabic tokens and that the specified queries reach the correct authorised records. It does not establish support for every Arabic spelling, every dialect or every document format. Those require representative material and their own acceptance cases if they are part of the intended service.
Before extending the search, ask the content owner for the phrases people actually use and examples where two similar expressions must remain distinct. Keep the agreed vocabulary and source authority alongside technical tests. A larger search engine is not a substitute for that material.
For a project discussion, bring one approved phrase, its reference, the record it should find and a contrasting record. The document-search service can then be scoped around a demonstrated reader task rather than the general claim that a library “supports Arabic.”
