Skip to content

Commit

Permalink
Revert skipRecords collection as records are ordered in simple search.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Sep 7, 2024
1 parent 1a9b176 commit 0734bf4
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ HashSet<TRecord> FindRecordsMatchingAllTokens(
int skip,
int limit)
{
var skipRecords = new HashSet<TRecord>();
var records = new HashSet<TRecord>();
iterator1.Seek(new CompositeKeyOfTokenRecordPrevious<TRecord, TToken>()
{
Expand All @@ -199,14 +198,9 @@ HashSet<TRecord> FindRecordsMatchingAllTokens(
// different previous token.
if (records.Contains(record)) continue;

if (skipRecords.Contains(record)) continue;

if (!DoesRecordContainAllTokens(tokens, record) ||
!DoesRecordContainAnyOfTheFacets(facets, record))
{
skipRecords.Add(record);
continue;
}

if (off >= skip)
{
Expand Down

0 comments on commit 0734bf4

Please sign in to comment.