mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 12:09:27 +08:00
This PR adds a Search section to the redesigned admin dashboard. It shows total search volume and a no-result rate for the selected date range with prior-period deltas, a rule-based headline summarising the period, the top 10 trending search terms, and the top 10 content gaps (terms whose searches end without a click), badged "No match" or "Poor match".
12 lines
286 B
Ruby
Vendored
12 lines
286 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
Fabricator(:search_log) do
|
|
term "ruby"
|
|
search_type SearchLog.search_types[:header]
|
|
ip_address "127.0.0.1"
|
|
end
|
|
|
|
Fabricator(:clicked_search_log, from: :search_log) do
|
|
search_result_id 1
|
|
search_result_type SearchLog.search_result_types[:topic]
|
|
end
|