internal override IEnumerable <IndexNode> Run(CollectionPage col, IndexService indexer) { var result = _query.Run(col, indexer); var all = new QueryAll("_id", _order).Run(col, indexer); return(all.Except(result, new IndexNodeComparer())); }
internal override IEnumerable<IndexNode> Run(CollectionPage col, IndexService indexer) { var result = _query.Run(col, indexer); var all = new QueryAll("_id", _order).Run(col, indexer); return all.Except(result, new IndexNodeComparer()); }
internal override IEnumerable <IndexNode> Run(CollectionPage col, IndexService indexer) { // run base query var result = _query.Run(col, indexer); this.UseIndex = _query.UseIndex; this.UseFilter = _query.UseFilter; if (_query.UseIndex) { // if is by index, resolve here var all = new QueryAll("_id", _order).Run(col, indexer); return(all.Except(result, new IndexNodeComparer())); } else { // if is by document, must return all nodes to be ExecuteDocument after return(result); } }