query
and filter
+ * and sorted by sort
. Also returns the compete set of documents
+ * matching query
and filter
(regardless of offset
and len
).
+ *
+ * This method is cache aware and may retrieve filter
from
+ * the cache or make an insertion into the cache as a result of this call.
+ *
+ * FUTURE: The returned DocList may be retrieved from a cache. + *
+ * The DocList and DocSet returned should not be modified.
+ *
+ * @param query
+ * @param filter may be null
+ * @param lsort criteria by which to sort (if null, query relevance is used)
+ * @param offset offset into the list of documents to return
+ * @param len maximum number of documents to return
+ * @param flags user supplied flags for the result set
+ * @return DocListAndSet meeting the specified criteria, should not be modified by the caller.
+ * @throws IOException
+ */
+ public DocListAndSet getDocListAndSet(Query query, Query filter, Sort lsort, int offset, int len, int flags) throws IOException {
+ Listquery
and filter
@@ -1047,6 +1085,11 @@ public class SolrIndexSearcher extends Searcher implements SolrInfoMBean {
return ret;
}
+ public DocListAndSet getDocListAndSet(Query query, DocSet filter, Sort lsort, int offset, int len, int flags) throws IOException {
+ DocListAndSet ret = new DocListAndSet();
+ getDocListC(ret,query,null,filter,lsort,offset,len, flags |= GET_DOCSET);
+ return ret;
+ }
protected DocList sortDocSet(DocSet set, Sort sort, int nDocs) throws IOException {
final FieldSortedHitQueue hq =