Example usage for org.apache.solr.search DocSet EMPTY

List of usage examples for org.apache.solr.search DocSet EMPTY

Introduction

In this page you can find the example usage for org.apache.solr.search DocSet EMPTY.

Prototype

DocSet EMPTY

To view the source code for org.apache.solr.search DocSet EMPTY.

Click Source Link

Usage

From source file:org.tallison.solr.search.concordance.SolrConcordanceBase.java

License:Apache License

public static DocSet getDocSet(Query q, SolrQueryRequest req) throws Exception {
    List<Query> filters = parseFilters(q, req);

    if (filters != null && filters.size() > 0)
        return req.getSearcher().getDocSet(filters);

    return DocSet.EMPTY;
}

From source file:org.tallison.solr.search.concordance.SolrConcordanceBase.java

License:Apache License

public static Filter getFilterQuery(Query q, SolrQueryRequest req) throws Exception {
    DocSet docs = getDocSet(q, req);/*from   w  w  w.j  a v a2  s. com*/
    if (docs != null && !docs.equals(DocSet.EMPTY)) {
        return docs.getTopFilter();
    }
    return null;
}