Skip to content

fix bug with sort on multi text field in a request

Neelesh Thakur requested to merge sort-mulitfield into master

Current implementation can only support sort on one text field at this time.

Query returns error

{
    "kind": "osdu:csv:wellbore:2.0.0",
    "sort": {
        "field": [
            "data.LEASE",
            "data.OPERATOR"
        ],
        "order": [
            "ASC",
            "ASC"
        ]
    }
}

Response returned:

{
    "code": 400,
    "reason": "Bad Request",
    "message": "Sort is not supported for one or more of the requested fields"
}

Sort query should work with multi field

Edited by Neelesh Thakur

Merge request reports