New script to break markdown in to Algolia search records and publish.#2961
New script to break markdown in to Algolia search records and publish.#2961
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
scripts/update-algolia-records.ts
Outdated
| } | ||
|
|
||
| function getGitBranch(): string { | ||
| return 'main' |
There was a problem hiding this comment.
I don't think we want this hardcoded return. Won't this delete main records from a preview branch?
There was a problem hiding this comment.
Yes this is just temp so the preview deployment works, it will be removed before merge
Allows running the script without pushing changes to Algolia. In dry run mode, outputs records to .algolia/records.json and stale record IDs to .algolia/stale.json for inspection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
I've combined the records that each property was being split in to, so now each property in a properties table gets just one record. Same as the production records. I'm wondering if we want to weigh these records down so they need to be searched for specifically. example: |
Ah, gotcha. This could be a new schema improvement, but thanks for helping me understand how it currently works. |
Just to make sure we're on the same page, I would expect |
Much better!
I would say yes. They could be helpful, but they're also going to add a lot of noise. I'd deprioritize. |
#2961) Co-authored-by: Michael Novotny <manovotny@gmail.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
#2961) Co-authored-by: Michael Novotny <manovotny@gmail.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

🔎 Previews:
What does this solve?
What changed?