geonetwork / geonetwork-microservices

GNU General Public License v2.0
13 stars 18 forks source link

No mapping found for [title] in order to sort on #40

Closed pvgenuchten closed 3 years ago

pvgenuchten commented 3 years ago

The specification has an unconventional approach to sorting:

current use of sortby throws:

No mapping found for [title] in order to sort on

e.g. which fields are currently available for sorting?

see also: https://github.com/opengeospatial/ogcapi-records/blob/master/core/openapi/parameters/sortby.yaml https://github.com/opengeospatial/ogcapi-records/blob/master/core/standard/clause_9_sorting.adoc

fxprunayre commented 3 years ago

e.g. which fields are currently available for sorting?

https://apps.titellus.net/ogcapi/collections/main/sortables

BTW we have to update to old encoding title:desc to -title

Also sortBy is a list so not sure if .../collections/mycat/items?...&sortby=-updated,recordId&... should be .../collections/mycat/items?...&sortby=-updated&sortby=recordId&... ?

fxprunayre commented 3 years ago

BTW we have to update to old encoding title:desc to -title

Done.

fxprunayre commented 3 years ago

Also sortBy is a list so not sure if .../collections/mycat/items?...&sortby=-updated,recordId&... should be .../collections/mycat/items?...&sortby=-updated&sortby=recordId&... ?

Added.

%2B or + works fine.

pvgenuchten commented 3 years ago

Great!