Package org.elasticsearch.common.lucene.docset

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


            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


            DocIdSet set = clause.getFilter().getDocIdSet(context, acceptDocs);
            if (clause.getOccur() == Occur.MUST_NOT) {
                if (DocIdSets.isEmpty(set)) {
                    return new AllDocIdSet(maxDoc);
                } else {
                    return new NotDocIdSet(set, maxDoc);
                }
            }
            // SHOULD or MUST, just return the set...
            if (DocIdSets.isEmpty(set)) {
                return null;
View Full Code Here

        DocIdSet set = filter.getDocIdSet(context, null);
        DocIdSet notSet;
        if (DocIdSets.isEmpty(set)) {
            notSet = new AllDocIdSet(context.reader().maxDoc());
        } else {
            notSet = new NotDocIdSet(set, context.reader().maxDoc());
        }
        return BitsFilteredDocIdSet.wrap(notSet, acceptDocs);
    }
View Full Code Here

TOP

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

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.