|
| 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 . |
|