Package org.elasticsearch.common.lucene.docset

Examples of org.elasticsearch.common.lucene.docset.AllDocSet


* @author kimchy (shay.banon)
*/
public class MatchAllDocsFilter extends Filter {

    @Override public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
        return new AllDocSet(reader.maxDoc());
    }
View Full Code Here


    }

    @Override public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
        DocIdSet set = filter.getDocIdSet(reader);
        if (set == null) {
            return new AllDocSet(reader.maxDoc());
        }
        if (set instanceof DocSet) {
            return new NotDocSet((DocSet) set, reader.maxDoc());
        }
        return new NotDocIdSet(set, reader.maxDoc());
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.lucene.docset.AllDocSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.