Skip to content

Commit

Permalink
19 - Setup Indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
andreituicu committed Oct 17, 2023
1 parent c4b9d02 commit f6c05d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ indices:
publicationDate:
select: head > meta[name="publication-date"]
value: parseTimestamp(attribute(el, "content"), "MM/DD/YYYY")
year:
select: head > meta[name="publication-date"]
# value: match(attribute(el, "content"), "\\/(\\d{4})$")
value: match(attribute(el, "content"), "\\d{2}\\/\\d{2}\\/(\\d{4})")
title:
select: head > meta[property="og:title"]
value: attribute(el, "content")
Expand Down

0 comments on commit f6c05d8

Please sign in to comment.