diff --git a/website/meta/site.json b/website/meta/site.json index 4defdf913..2c58699b6 100644 --- a/website/meta/site.json +++ b/website/meta/site.json @@ -23,6 +23,11 @@ "list": "89ad33e698" }, "docSearch": { + "apiKey": "f7dbcd148fae73db20b6ad33d03cc9e8", + "indexName": "dev_spacy_netlify", + "appId": "Y7BGGRAPHC" + }, + "_docSearch": { "apiKey": "371e26ed49d29a27bd36273dfdaf89af", "indexName": "spacy" }, diff --git a/website/src/components/search.js b/website/src/components/search.js index 9d63c06b5..0d803a541 100644 --- a/website/src/components/search.js +++ b/website/src/components/search.js @@ -6,12 +6,13 @@ import Icon from './icon' import classes from '../styles/search.module.sass' const Search = ({ id, placeholder, settings }) => { - const { apiKey, indexName } = settings + const { apiKey, indexName, appId } = settings const [initialized, setInitialized] = useState(false) useEffect(() => { if (!initialized) { setInitialized(true) window.docsearch({ + appId, apiKey, indexName, inputSelector: `#${id}`, diff --git a/website/src/templates/index.js b/website/src/templates/index.js index 190cdf96b..794ea5ac9 100644 --- a/website/src/templates/index.js +++ b/website/src/templates/index.js @@ -191,6 +191,7 @@ export const pageQuery = graphql` docSearch { apiKey indexName + appId } } }