diff --git a/helix-query.yaml b/helix-query.yaml new file mode 100644 index 0000000..6d78395 --- /dev/null +++ b/helix-query.yaml @@ -0,0 +1,30 @@ +version: 1 + +indices: + learn: + target: /learn/query-index + include: + - /learn/** + exclude: + - /learn/product-highlights + properties: + title: + select: head > meta[property="og:title"] + value: | + attribute(el, 'content') + image: + select: head > meta[property="og:image"] + value: | + match(attribute(el, 'content'), 'https:\/\/[^/]+(\/.*)') + description: + select: head > meta[name="description"] + value: | + attribute(el, 'content') + lastModified: + select: none + value: | + parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT') + robots: + select: head > meta[name="robots"] + value: | + attribute(el, 'content')