|
|
# Configure Elasticsearch as search engine
|
|
|
|
|
|
To configure Elasticsearch as your Search Engine, you must follow this steps:
|
|
|
To configure Elasticsearch as your Search Engine, you must follow these steps:
|
|
|
|
|
|
1. From the Ghost **Code injection**, insert the following code into the _Site Header_
|
|
|
```html
|
... | ... | @@ -10,7 +10,7 @@ To configure Elasticsearch as your Search Engine, you must follow this steps: |
|
|
var elasticsearch_auth = btoa(elasticsearch_username + ":" + elasticsearch_password);
|
|
|
</script>
|
|
|
```
|
|
|
2. If you Elasticsearch endpoint URL is different than the suggested one (`/api/search`), then precise the URL in addition to the other information:
|
|
|
2. If your Elasticsearch endpoint URL is different than the suggested one (`/api/search`), then precise the URL in addition to the other information:
|
|
|
```javascript
|
|
|
var elasticsearch_endpoint = 'https://my-elasticsearch.com';
|
|
|
``` |