test('confirm can search as normal', function (t) { t.plan(6) var results = [ 'two', 'three', 'one', 'four' ] SearchIndexSearcher({ indexPath: 'test/sandbox/deleteTest' }, function (err, si) { t.error(err) si.search({ AND: {'*': ['*']} }).on('data', function (data) { t.equals(data.document.id, results.shift()) }).on('end', function () { si.close(function (err) { t.error(err) }) }) }) })
}, function (err, supergroup) { t.error(err) SearchIndexSearcher({ indexPath: 'test/sandbox/stones' }, function (err, stones) { t.error(err) stones.dbReadStream() .pipe(supergroup.dbWriteStream()) .on('data', function () {}) .on('end', function () { supergroup.close(function (err) { t.error(err) stones.close(function (err) { t.error(err) }) }) }) }) })