jlebensold/swivel — pull request #3 by bruntonspall (2012-05-08 12:55:33+00:00)
Title: Make it a bit faster

Requesting all tags and all fields makes the query more expensive, and much larger.
Querying for show-fields=all&show-tags=all takes around 6 seconds, whereas showFields=score,shortUrl,thumbnail and no tags takes only 3 seconds
Those times are for all 3 calls. That time is saved in both Content-API render time and data transfer time, particularly the body field being very large in some cases.

I've also extracted the Options into a hash so it's easier to change, and I've added orderBy=relevance which switches from most recent first to most relevant first since that seems more appropriate.