Search code examples
apisearchsocrata

Socrata Catalog Search API (beta) - result order?


How are results being sorted in the Socrata Catalog Search API (beta)? Is there or will there be a way to control this (e.g. relevance/scoring)?

Currently adding parameters to the search URL currently affect the sort order. For example: http://api.us.socrata.com/api/catalog/v1?&domains=data.cityofnewyork.us and http://api.us.socrata.com/api/catalog/v1?&domains=data.cityofnewyork.us&limit=20 return resources in different order. Likewise if adding &offset=0


Solution

  • Results are currently supported by relevance, and there's no external way to tweak the ordering of results.

    I'm seeing the same thing as you when modifying the {{offset}}. I'll let our engineering team know and see what they say.