Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Ghost Fluent UI Ghost Fluent UI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ghost Themes
  • Ghost Fluent UIGhost Fluent UI
  • Wiki
  • Search Engine

Last edited by Laurent Sittler Feb 08, 2021
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Search Engine

Configure a Search Engine

The theme include the following Search Engine connectors:

  • GhostHunter: included into the theme
  • 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

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
    <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
    <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:
    var elasticsearch_endpoint = 'https://my-elasticsearch.com';
Clone repository

Home

Theme

  • Header
  • Footer

Search Engine

  • GhostHunder
  • Elasticsearch

Apps Launcher

Templates

  • Posts
  • Pages
  • Tags
  • Featured
  • Events

Blog Comments

  • Isso