This issue has been created
There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8db38cef-ec62-4cb7-82e6-3f9c9419f093 XWIKI-23763 Open

Search does not work for words ending in "e" or "E" when using the wildcard

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d3d3443c-e78f-4219-ae0a-d7220f47ff31 Lucian Chevereseanu created this issue on 26/Nov/25 11:30
 
Summary: Search does not work for words ending in "e" or "E" when using the wildcard
Issue Type: cid:jira-generated-image-avatar-8db38cef-ec62-4cb7-82e6-3f9c9419f093 Bug
Affects Versions: 14.10.20, 16.10.11, 17.9.0
Assignee: Unassigned
Components: Search - Generic
Created: 26/Nov/25 11:30
Priority: cid:jira-generated-image-static-minor-9b1461e8-af8a-446c-b53c-2e94502dcf03 Minor
Reporter: Lucian Chevereseanu
Description:

Steps to reproduce:
1. Create a page (or Edit an existing one) and in the content of the page add a word which ends in either "e" or "E" (it does not seem to matter) and save the page. For example, engine
2. In the XWiki searchbar, search for the word using the wildcard symbol, * (i.e. engine*)

Expected result:
The search results displays, among the results, the page containing our word.

Actual result:
The page containing our word is not among the search results returned

Additional information:

The issue seems to also happen for Titles and comments
When searching for:
the word ending in "E", or "e" without the wildcard, results are displayed
words not ending in "E" or "e", using the wildcard, results are displayed
part of the word using the wildcard (i.e. engi*), results are displayed

I've tested and reproduced on 16.10.11, 16.10.12, 16.10.14(current LTS), 17.9.0 (current stable) and 14.10.20.

 
 

1 comment

 
cid:jira-generated-image-avatar-0a067f83-31ed-4521-853d-c5deea89db2c Michael Hamann on 26/Nov/25 11:38
 

The indexed tokens don't necessarily correspond to the exact word in the text, Solr uses stemming to reduce similar words to the same base word. In normal searches, the same transformation is applied to the search term. When using wildcard search, though, this transformation isn't applied, the wildcard directly matches against the exact indexed tokens. When using wildcard search in any automated way, I would always recommend also searching for the term without wildcard to avoid these kinds of issues.