Skip to content
Discussion options

You must be logged in to vote

contextualSearch: true : Thank you for your answer and suggestion, I have found out that it isn't enough to have correctly set docusaurus_tag, version and language. It is also required to set them as attributes for faceting

I did this using API in this way (JS, algoliasearch v5 (5.35.0))

const client = algoliasearch(ALGOLIA_APP_ID, ALGOLIA_ADMIN_API_KEY);

await client.setSettings({
    indexName: ALGOLIA_INDEX_NAME,
    indexSettings: {
        attributesForFaceting: [
            'filterOnly(language)',
            'filterOnly(docusaurus_tag)',
            'filterOnly(content)',
        ],
    },
});
or you can set it using UI

Hope this will be useful as a troubleshooting for others i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pihaland
Comment options

Answer selected by pihaland
@slorber
Comment options

slorber Aug 8, 2025
Collaborator

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