Ability in CQL/REST API to provide relevance based search

XMLWordPrintable

    • 1

      Description:-

      Currently, when you do a text-based search in CQL it provides a response in the descending order of the page id. Also, we can sort the results by title, created date, and updated date. However, in the UI, the sort order is different for the same search since it does a relevance-based search. This may cause inconvenience to a user who wants the UI and CQL results to be identical.

      Steps to replicate:-

      1) Create a couple of pages in multiple spaces with keywords like 'mobile' and 'mobile device'.
      2) Search for 'mobile device' in the UI. The UI gives relevant based search.
      3) Execute https://xxx.atlassian.net/wiki/rest/api/search?cql= text~" mobile device" in Curl or Postman tool.
      4) The results and the sort order is different in both cases.

      Suggested resolution:-

      Provide facility in CQL to provide relevance-based search as in UI. 

       

        1. UI_Search.png
          UI_Search.png
          441 kB
        2. CQL_Search.png
          CQL_Search.png
          363 kB

            Assignee:
            Unassigned
            Reporter:
            Sajan M (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: