Skip to content

Commit

Permalink
Update indexing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoss committed Dec 18, 2023
1 parent f82ae8c commit c5a0403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/v2/articles/indexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ myIndex.IndexItem(new ValueSet(
Be default all indexing is done asynchronously. If you need to run indexing synchronously you should create a synchronous scope. This is for instance a necessary step for unit tests.

```cs
using (var luceneIndex = (myIndex as LuceneIndex))
using (var luceneIndex = (LuceneIndex)myIndex)
using (var syncIndexContext = luceneIndex.WithThreadingMode(IndexThreadingMode.Synchronous))
{
luceneIndex.IndexItem(new ValueSet(
Expand Down Expand Up @@ -253,4 +253,4 @@ private void IndexCommited(object sender, EventArgs e)
{
// Triggered when the index is commited
}
```
```

0 comments on commit c5a0403

Please sign in to comment.