support options: doc_ids, filter and query_params