def run(self, after=None, reverse=False, num=1000, _update=False): results = self._run(_update=_update) docs, hits = results.docs, results.hits after_docs = get_after(docs, after, num, reverse=reverse) return Results(after_docs, hits)
def run(self, after=None, reverse=False, num=1000, _update=False): results = self._run(_update=_update) docs, hits, facets = results.docs, results.hits, results._facets after_docs = r2utils.get_after(docs, after, num, reverse=reverse) self.results = Results(after_docs, hits, facets) return self.results
def run_search(cls, q, sort, solr_params, reverse, after, num, _update = False): "returns pysolr.Results(docs=[fullname()],hits=int())" if reverse: sort = swap_strings(sort,'asc','desc') after = after._fullname if after else None search = cls.run_search_cached(q, sort, 0, num, solr_params, _update = _update) search.docs = get_after(search.docs, after, num) return search
def run_search(cls, q, sort, solr_params, reverse, after, num, _update=False): "returns pysolr.Results(docs=[fullname()],hits=int())" if reverse: sort = swap_strings(sort, 'asc', 'desc') after = after._fullname if after else None search = cls.run_search_cached(q, sort, 0, num, solr_params, _update=_update) search.docs = get_after(search.docs, after, num) return search