Nucleoc::Nucleo(T)
A high-level matcher worker that computes matches in background fibers.
Constructors
new(config : Config = Config.new, notify : -> Nil = -> do
nil
end, num_threads : Int32 | Nil = nil, columns : Int32 = 1)
Constructs a new nucleo worker.
config- The matcher configurationnotify- Called when new information is available andtickshould be callednum_threads- Number of worker threads (not used in Crystal fiber version)columns- Number of columns for multi-column matching
Instance methods
reparse(column : Int32, new_text : String, case_matching : CaseMatching = CaseMatching::Smart, normalization : Normalization = Normalization::Smart, append : Bool = false) : Nil
Updates the pattern for a column.
Restarts the matcher, optionally clearing the current snapshot.
Enables or disables sorting of match results by score.
Processes pending updates and returns the current status.
timeout- Maximum time to wait for updates (in milliseconds)