Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark J. Hoy markjhoy

View GitHub Profile
@markjhoy
markjhoy / Workplace Search Analytics Dashboard.ndjson
Created Feb 1, 2021
Workplace Search Analytics Kibana Dashboard
View Workplace Search Analytics Dashboard.ndjson
{"attributes":{"fields":"[{\"count\":0,\"name\":\"@timestamp\",\"type\":\"date\",\"esTypes\":[\"date\"],\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"count\":0,\"name\":\"SearchMetrics.click.result.content_source\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"count\":0,\"name\":\"SearchMetrics.click.result.document_type\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"count\":0,\"name\":\"SearchMetrics.click.result.id\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"count\":0,\"name\":\"SearchMetrics.click.result.rank\",\"type\":\"number\",\"esTypes\":[\"long\"],\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"count\":0,\"name\":\"SearchMetrics.click.r
@markjhoy
markjhoy / Monthly Engagement Volume
Created Jan 26, 2021
Workplace Search Analytics - Monthly Engagement Volume
View Monthly Engagement Volume
{
"size": 0,
"query": {
"bool": {
"minimum_should_match": 1,
"should": [
{
"match": {
"event.action": "SearchMetrics.query"
}
@markjhoy
markjhoy / Weekly User Retention
Created Jan 26, 2021
Workplace Search Analytics - Weekly User Retention
View Weekly User Retention
{
"size": 0,
"query": {
"bool": {
"minimum_should_match": 1,
"should": [
{ "match": { "event.action": "SearchMetrics.query" } }
]
}
},
@markjhoy
markjhoy / WorkplaceSearch_Analytics_Transform.json
Created Jan 24, 2021
Workplace Search - Analytics - Query Stats Transform
View WorkplaceSearch_Analytics_Transform.json
{
"source": {
"index": ".ent-search-workplace-search-analytics-ecs-ilm-logs-*"
},
"dest": {
"index": "workplace-search-analytics_query-stats"
},
"pivot": {
"group_by": {
"query_id": {
@markjhoy
markjhoy / workplace-search-top_queries_no_clicks
Last active Jan 24, 2021
Elastic Workplace Search - Vega Configuration for Top Queries With No Clicks
View workplace-search-top_queries_no_clicks
{
$schema: https://vega.github.io/schema/vega-lite/v4.json
title: Top Queries With No Clicks
data: {
url: {
index: .ent-search-workplace-search-analytics-ecs-ilm-logs-*
body: {
query: {
bool: {