Missing 'sort' parameter

Bug #1478177 reported by Steve McLellan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
Critical
Steve McLellan

Bug Description

I thought this was present but i can't find mention in the source or docs. We need to add support for sorting; elasticsearch's format should be fine. https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html

    "sort": ["name", {"_score": "desc"}, {"something": {"order": "asc"}}]

Steve McLellan (sjmc7)
Changed in searchlight:
importance: Undecided → Critical
assignee: nobody → Steve McLellan (sjmc7)
Changed in searchlight:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight (master)

Reviewed: https://review.openstack.org/206268
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=798cd32a63e625e253707158807ea28bbe3e3bef
Submitter: Jenkins
Branch: master

commit 798cd32a63e625e253707158807ea28bbe3e3bef
Author: Steve McLellan <email address hidden>
Date: Mon Jul 27 19:08:27 2015 -0500

    Add 'sort' parameter

    Somehow we left sorting out! Adds support for 'sort', which can either
    be:
      * a string scalar
      * a dict (name: order)
      * a list of the above

    The 'sort' parameter is added to the Elasticsearch query.

    Change-Id: I14bd6ab4a65569becc998aa257a06532fc363ef4
    Closes-Bug: #1478177

Changed in searchlight:
status: In Progress → Fix Committed
Changed in searchlight:
milestone: none → liberty-rc1
Changed in searchlight:
status: Fix Committed → Fix Released
Changed in searchlight:
milestone: liberty-rc1 → 0.1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.