combinedSubResults = union(leafDocs, subDocs);
combinedSubResults = union(leafDocs, subDocs);
/** Get prefix & leaf docs at this cell. */ private SmallDocSet getDocs(Cell cell, Bits acceptContains) throws IOException { assert indexedCell.compareToNoLeaf(cell) == 0; //called when we've reached detailLevel. if (indexedCell.isLeaf()) {//only a leaf SmallDocSet result = collectDocs(acceptContains); nextTerm(); return result; } else { SmallDocSet docsAtPrefix = collectDocs(acceptContains); if (!nextTerm()) { return docsAtPrefix; } //collect leaf too if (indexedCell.isLeaf() && indexedCell.compareToNoLeaf(cell) == 0) { SmallDocSet docsAtLeaf = collectDocs(acceptContains); nextTerm(); return union(docsAtPrefix, docsAtLeaf); } else { return docsAtPrefix; } } }
/** Get prefix & leaf docs at this cell. */ private SmallDocSet getDocs(Cell cell, Bits acceptContains) throws IOException { assert indexedCell.compareToNoLeaf(cell) == 0; //called when we've reached detailLevel. if (indexedCell.isLeaf()) {//only a leaf SmallDocSet result = collectDocs(acceptContains); nextTerm(); return result; } else { SmallDocSet docsAtPrefix = collectDocs(acceptContains); if (!nextTerm()) { return docsAtPrefix; } //collect leaf too if (indexedCell.isLeaf() && indexedCell.compareToNoLeaf(cell) == 0) { SmallDocSet docsAtLeaf = collectDocs(acceptContains); nextTerm(); return union(docsAtPrefix, docsAtLeaf); } else { return docsAtPrefix; } } }