There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2c689500-034a-43f3-bacf-bf8f60dcaea7 XWIKI-24199 Open

Object keyword search REST API only works on objects with both short and long string properties

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-a8dbd81b-d775-407f-9240-62b5e281f4d7 Changes by Michael Hamann on 09/Apr/26 12:48
 
Description: *Steps to reproduce:*
# Add an object of class AppWithinMinutes.String to a page
# Set the short text property in it to a unique string like "Noos5uyu"
# Open {{/xwiki/rest/wikis/xwiki/search?q=Noos5uyu&scope=objects}}

*Expected result:*

The page is listed.

*Actual result:*

The object isn't listed.

When using {{TourCode.TourClass}} and setting any string property it works as expected. This is because the [implementation|https://github.com/tkrieck/xwiki-platform/blob/e6c79ded04f91b9299eff797f58dcd748e97f37c/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/DatabaseKeywordSearchSource.java#L484-L498] uses an inner join with both a short and a large string property on the same object ID and thus only matches objects that have both a short and a large string property. For the match itself, it doesn't matter where the
query queried string is , so when you have both property types, it is enough for the query to be found in one of them .