buildkite / templates

Buildkite pipeline templates
https://buildkite.com/pipelines/templates
MIT License
2 stars 1 forks source link

Sync DatoCMS w/ Algolia #53

Closed dannymidnight closed 8 months ago

dannymidnight commented 8 months ago

This is a slight variation on #52 by pulling the data from DatoCMS prior to indexing. Why do this? It's a little roundabout, but it's a quick way of inferring the parent -> child facets for testing out querying.

Now a search document contains the following:

{
  name: "CI for Ruby",
  languges: ["Ruby"],
  use-cases: ["CI"],
  ...
}

as opposed to:

{
  name: "CI for Ruby",
  categories: ["Ruby", "CI"],
  ...
}

Some alternatives to this approach: