... | ... | @@ -6,33 +6,3 @@ The theme include the following _Search Engine_ connectors: |
|
|
* **ElasticSearch**: you have to configure the ElasticSearch server on your side. Here, a post that explain you how to use [Elasticsearch as search engine for your Ghost blog](https://blog.lsonline.fr/2020/07/08/elasticsearch-as-search-engine-for-your-ghost-blog/)
|
|
|
|
|
|
> **Note**: if no search engine is configured, the search bar does not appear |
|
|
|
|
|
## GhostHunter
|
|
|
|
|
|
To configure GhostHunter as your Search Engine, you must follow this steps:
|
|
|
|
|
|
1. Create a **Custom integration** named **GhostHunter**
|
|
|
2. Copy the **Content API Key**
|
|
|
3. From the Ghost **Code injection**, insert the following code into the _Site Header_
|
|
|
```html
|
|
|
<script type="text/javascript">
|
|
|
var ghosthunter_key = '<YOUR_CONTENT_API_KEY>';
|
|
|
</script>
|
|
|
```
|
|
|
|
|
|
## Elasticsearch
|
|
|
|
|
|
To configure Elasticsearch as your Search Engine, you must follow this steps:
|
|
|
|
|
|
1. From the Ghost **Code injection**, insert the following code into the _Site Header_
|
|
|
```html
|
|
|
<script type="text/javascript">
|
|
|
var elasticsearch_username = '<ELASTICSEARCH_USERNAME>';
|
|
|
var elasticsearch_password = '<ELASTICSEARCH_PASSWORD>';
|
|
|
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:
|
|
|
```javascript
|
|
|
var elasticsearch_endpoint = 'https://my-elasticsearch.com';
|
|
|
``` |