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
  • Elasticsearch

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.

Elasticsearch

Configure Elasticsearch as search engine

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