Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
JuicyDragon committed Oct 12, 2022
1 parent 59d5331 commit a7d208c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RubyTests/BulkRedactor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Initialize super utilities
$su = SuperUtilities.init($utilities,NUIX_VERSION)

case_directory = "D:\\cases\\FakeData_1552095540_Hare\\Pearlie Morar"
case_directory = "D:\\cases\\FakeData_1662662781"
temp_directory = "D:\\Temp\\BulkRedactorTemp"
markup_set_name = "Redaction_Test_#{Time.now.to_i}"
scope_query = "kind:email"
Expand All @@ -33,6 +33,9 @@
brs.setApplyRedactions(false)
brs.setApplyHighLights(false)

# How many concurrent threads should be ran. Note that more is not always better!
concurrency = 4

# Create bulk redactor
br = BulkRedactor.new

Expand All @@ -43,7 +46,7 @@

# Find and markup expressions based on settings, this then returns
# NuixImageAnnotationRegion objects for each match found
regions = br.findAndMarkup($current_case,brs,scope_items)
regions = br.findAndMarkup($current_case,brs,scope_items,concurrency)

# Iterate each found region and print summary about it
regions.each do |region|
Expand Down

0 comments on commit a7d208c

Please sign in to comment.