Skip to content

Commit

Permalink
fix search operation selection
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Aug 23, 2024
1 parent 1f62e16 commit 54302bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/lib/canary/searcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ defmodule Canary.Searcher.Default do
ai = query |> String.split(" ", trim: true) |> Enum.count() > 2

if ai do
Appsignal.instrument("normal_search", fn ->
normal_search(source, query)
end)
else
Appsignal.instrument("ai_search", fn ->
ai_search(source, query)
end)
else
Appsignal.instrument("normal_search", fn ->
normal_search(source, query)
end)
end
end

Expand Down

0 comments on commit 54302bb

Please sign in to comment.