refactor previous/next docs to use only a single extra solr query.