Skip to content

Best practice for indexing and filtering different contents #699

Answered by bglw
codejanovic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @codejanovic 👋

For this use-case I would usually just generate a single Pagefind instance with filtering to demarcate each specific search. Searching as one combined index has better (network) performance than the merged-index style, so when it's possible to do it's always preferred. The NodeJS API can be used for it all, both ingesting current content and merging it with the standard directory-crawl behavior.

What also confused me is that using the Node-API only will generate empty files for pagefind-ui.css and pagefind-ui.js. It seems only the pagefind CLI will generate them properly.

Oop — if true that's definitely a bug 🤔 I'll add an integration test for the node api / ui crossov…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by codejanovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants