cfpb / sheer

A tool for loading arbitrary content into Elasticsearch and serving that content on the web.
Creative Commons Zero v1.0 Universal
29 stars 23 forks source link

Default sort: a nice idea, but fragile #49

Closed rosskarchner closed 7 years ago

rosskarchner commented 10 years ago

By default we sort by date:desc, if there's no sort specified in _queries/whatever.json.

If a dataset doesn't have a date field, it breaks.

dpford commented 10 years ago

So are you thinking we do away with the default, and put the responsibility on the query file?

rosskarchner commented 10 years ago

Yeah, I think so. If there's no sort specified, just do whatever Elasticsearch does without a sort parameter.