Wiki: List Search Terms used/Websites / Privacy Sensitive Analytics



Search term historic retention has been partially implemented in websites/privacy-sensitive-analytics#13

The current storage is a stop-gap, with the intention that we may later find a good way to categorise search inputs

Pulling historic search terms from PFAnalytics

from(bucket: "search_terms/autogen")
  |> range(start: v.timeRangeStart)
  |> filter(fn: (r) => r._measurement == "search_terms" 
                       and r._field == "search_term")
  |> map(fn: (r) => ({ _time: r._time,
                       term: r._value,
                       domain: r.domain
                       }))
  |> group()
  |> sort()