fix(v2): DocSearch should keep working after a new release (#3393)

* We should create an alias for searching last version of docs on DocSearch/Algolia, so that on new version publish, search still works even if new version is not already indexed (https://github.com/facebook/docusaurus/issues/3391)

* commit missing snapshot

* update after algolia changes

* put back facetFilters: [`version:${versions[0]}`] until latest facet is indexed
This commit is contained in:
Sébastien Lorber 2020-09-03 14:35:46 +02:00 committed by GitHub
parent 3ace60043b
commit 9c34f68a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 57 additions and 22 deletions

View file

@ -235,6 +235,7 @@ module.exports = {
apiKey: '47ecd3b21be71c5822571b9f59e52544',
indexName: 'docusaurus-2',
searchParameters: {
// facetFilters: [`version:latest`],
facetFilters: [`version:${versions[0]}`],
},
},