There are 3 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d205da2e-1755-4b3d-a72e-c48ae567fc4b XWIKI-23763 Closed

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

 
View issue   ยท   Add comment
 

3 updates

 
cid:jira-generated-image-avatar-5336323f-6780-451c-86b2-1d0ce67034cd Changes by Marius Dumitru Florea on 26/Nov/25 11:46
 
Assignee: Marius Dumitru Florea
Resolution: Invalid
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-5336323f-6780-451c-86b2-1d0ce67034cd Marius Dumitru Florea on 26/Nov/25 11:46
 

Lucian Chevereseanu that's the expected behavior. When you search for:

xyz*

Solr is looking in its index for tokens that start with "xyz". In order to have a match you need to have a token like that in the index. Which brings us to the indexing part.

When you put "xyz" in a wiki page, the tokens that get added to the index are not exactly the words from the page content. It depends very much:

  • on the field (page content, title, name, object property, etc.)
  • the page locale
  • the indexing type (the same field is often indexed in multiple ways)

For English locale a word like "cars" leads to a "car" token, but that may be different for other locales. So when you try to search for cars* you won't get any results most probably because the token that was indexed is car. Wild card search should be used on fields that are indexed as strings (i.e. the field value produces a single token). Using it on fields where the root of each word is extracted leads to unexpected results, like in this case.