Skip to content

enh(search): move search to algolia#788

Draft
lwasser wants to merge 4 commits intopyOpenSci:mainfrom
lwasser:search
Draft

enh(search): move search to algolia#788
lwasser wants to merge 4 commits intopyOpenSci:mainfrom
lwasser:search

Conversation

@lwasser
Copy link
Member

@lwasser lwasser commented Jan 15, 2026

This will close #649 when we implement it.

@lwasser lwasser marked this pull request as draft January 22, 2026 01:16
indexName: indexName,
searchClient: searchClient
// Add back once attributes confirmed:
// searchParameters: { restrictSearchableAttributes: ['title','hierarchy.lvl0','hierarchy.lvl1','content'] }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these attributes still need confirmation?

Comment on lines +81 to +82
if (lower.includes('python-package-guide/tutorials/')) return 'Tutorial';
if (lower.includes('/lessons/')) return 'Tutorial';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (lower.includes('python-package-guide/tutorials/')) return 'Tutorial';
if (lower.includes('/lessons/')) return 'Tutorial';
if (lower.includes('python-package-guide/tutorials/') || lower.includes('/lessons/')) return 'Tutorial';

To be like the other "multi-source" tags?

// searchParameters: { restrictSearchableAttributes: ['title','hierarchy.lvl0','hierarchy.lvl1','content'] }
});

function hl(hit, path) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does "hl" stand for "highlight"? Apologies if this is overly pedantic, but all of the other functions have great descriptive names. This function seems like an outlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEATURE: Move to algolia search

2 participants