use of org.neo4j.index.impl.lucene.legacy.EntityId.LongCostume in project neo4j by neo4j.
the class LuceneLegacyIndex method letThroughAdditions.
private void letThroughAdditions(IndexSearcher additionsSearcher, Query query, Collection<EntityId> removed) throws IOException {
// This could be improved further by doing a term-dict lookup for every term in removed
// and retaining only those that did not match.
// This is getting quite low-level though
DocValuesCollector collector = new DocValuesCollector(false);
additionsSearcher.search(query, collector);
PrimitiveLongIterator valuesIterator = collector.getValuesIterator(KEY_DOC_ID);
LongCostume id = new LongCostume();
while (valuesIterator.hasNext()) {
long value = valuesIterator.next();
removed.remove(id.setId(value));
}
}
Aggregations