Using Quick Search in WebUI does not work with plurals. For instance we have two documents:
1. Document with dc:title - Bridge
2. Document with dc:title - Bridges
Using Quick Search I expect to type either bridge or bridges and get relative results.
Current behavior: taking bridge as an input returns both documents. As soon as we search for bridges - no results. Trying to add a whitespace at the end - still no results.
Searching for plurals, should return at least the relative documents that contain plurals as its properties.
At the current implementation, all terms are sanitized by using org.nuxeo.ecm.platform.query.nxql.NXQLQueryBuilder#sanitizeFulltextInput The method works fine and I believe as expected. Although, in suggest method we still check if the space is at the end of the term https://github.com/nuxeo/nuxeo-platform-suggestbox/blob/master/nuxeo-platform-suggestbox-core/src/main/java/org/nuxeo/ecm/platform/suggestbox/service/suggesters/DocumentLookupSuggester.java#L84
As the result we always searching for term* despite user's input.