@Override
    public boolean contains(Object o) {
        for (Set<QueryableEntry> otherIndexedResult : indexedResults) {
            if (otherIndexedResult.contains(o)) {
                return true;
            }
        }
        return false;
    }
@Test
    public void contains() {
        int size = 100000;
        Set<QueryableEntry> entries1 = generateEntries(size);
        Set<QueryableEntry> entries2 = generateEntries(size);
        List<Set<QueryableEntry>> indexedResults = new ArrayList<>();
        indexedResults.add(entries1);
        indexedResults.add(entries2);

        OrResultSet resultSet = new OrResultSet(indexedResults);
        Set<QueryableEntry> combinedEntries = new HashSet<>(entries1);
        combinedEntries.addAll(entries2);

        for (QueryableEntry entry : combinedEntries) {
            assertContains(resultSet, entry);
        }
        assertNotContains(resultSet, new DummyEntry());
    }