Package org.elasticsearch.common.lucene.docset

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


            sets.add(set);
        }
        if (allAreDocSet) {
            return new AndDocSet(sets);
        }
        return new AndDocIdSet(sets);
    }
View Full Code Here


        MultiGeoPointValues values = indexFieldData.load(context).getGeoPointValues();
        GeoDistanceRangeDocSet distDocSet = new GeoDistanceRangeDocSet(context.reader().maxDoc(), acceptedDocs, values, fixedSourceDistance, distanceBoundingCheck, inclusiveLowerPoint, inclusiveUpperPoint);
        if (boundingBoxDocSet == null) {
            return distDocSet;
        } else {
            return new AndDocIdSet(new DocIdSet[]{boundingBoxDocSet, distDocSet});
        }
    }
View Full Code Here

        final MultiGeoPointValues values = indexFieldData.load(context).getGeoPointValues();
        GeoDistanceDocSet distDocSet = new GeoDistanceDocSet(context.reader().maxDoc(), acceptedDocs, values, fixedSourceDistance, distanceBoundingCheck, distance);
        if (boundingBoxDocSet == null) {
            return distDocSet;
        } else {
            return new AndDocIdSet(new DocIdSet[]{boundingBoxDocSet, distDocSet});
        }
    }
View Full Code Here

                            return randomSet.get(doc);
                        }
                    };
                }
            }
            AndDocIdSet andSet = new AndDocIdSet(sets);
            Bits andBits = andSet.bits();
            if (andBits != null) {
                for (int i = 0; i < numDocs; ++i) {
                    assertEquals(anded.get(i), andBits.get(i));
                }
            }
            DocIdSetIterator andIt = andSet.iterator();
            if (andIt == null) {
                assertEquals(0, anded.cardinality());
            } else {
                int previous = -1;
                for (int doc = andIt.nextDoc(); doc != DocIdSetIterator.NO_MORE_DOCS; doc = andIt.nextDoc()) {
View Full Code Here

            if (DocIdSets.isEmpty(set)) { // none matching for this filter, we AND, so return EMPTY
                return null;
            }
            sets[i] = set;
        }
        return BitsFilteredDocIdSet.wrap(new AndDocIdSet(sets), acceptDocs);
    }
View Full Code Here

TOP

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

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.