Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add indexing pauses in QueryEmExample
  • Loading branch information
mgravell committed Jul 15, 2026
commit bafaf5341b899fdae64d9509dc4450d45ec90a0e
11 changes: 11 additions & 0 deletions tests/Doc/QueryEmExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ public void Run()
}
// HIDE_END

// REMOVE_START
// JSON indexing is asynchronous; wait for the background indexer to catch
// up before querying, otherwise searches can intermittently return fewer
// results than expected (especially under CI load). Removed from docs.
Thread.Sleep(2000);
// REMOVE_END


// STEP_START em1
SearchResult res1 = db.FT().Search(
Expand Down Expand Up @@ -260,6 +267,10 @@ public void Run()

db.JSON().Set("key:1", "$", "{\"email\": \"test@redis.com\"}");

// REMOVE_START
Thread.Sleep(2000); // wait for async indexing (removed from docs)
// REMOVE_END


SearchResult res4 = db.FT().Search(
"idx:email",
Expand Down
Loading