Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-994

function formatFulltext() breaks full-text search syntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: Widgets

      Description

      In <nuxeo-default-search-form>, function _search callsĀ this.formatFulltext(this.searchTerm) to set the params to pass to the Page Provider. The full-text syntax allows for term negation (e.g. "supply -chain") to exclude results with a certain match. Strangely, this function (formatFulltext) chooses to strip out hyphens, thus passing the wrong params query. I'm not really sure of the purpose of this function. See:

      https://github.com/nuxeo/nuxeo-web-ui/blob/master/elements/search/default/nuxeo-default-search-form.html#L155

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                msaye Mark Saye
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m