Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25172

DefaultDocumentSuggester should search for plurals

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 9.10-HF09, 10.1
    • Fix Version/s: 10.3
    • Component/s: Core
    • Backlog priority:
      500

      Description

      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.

      Expectations:
      Searching for plurals, should return at least the relative documents that contain plurals as its properties.

      Dev notes:
      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: