Loading...
 
Skip to main content

History: How to configure Tiki for Elasticsearch Service

Source of version: 16 (current)

Copy to clipboard
            !! {{page}}

{DIV(class="lead")}This documentation page aims to help you to configure your Tiki site to have it indexed online by [https://www.elastic.co/products/elasticsearch/service|Elasticsearch Service].

At this point it's assumed you have an Elastic Service account, as well as a working Deployment there. See [https://www.elastic.co/products/elasticsearch] for more information.{DIV}

For your Tiki site search configuration, you'll need some info from the Deployment's main screen, so click on Elasticsearch __Copy Endpoint URL__ link as in the following image:

{img type="fileId" fileId="1657"}

Then go to this page in your tiki: -+tiki-admin_dsn.php+- You can get there via Control Panel, Tools, DSN/Content Authentication:

{img type="fileId" fileId="1665"}

You'll paste the copied info down in the __Content Authentication__ section, field __URL__. Also complete the other fields in that form. Give it an Identifier, e.g. Elastic Cloud, and set Type to HTTP Basic. The Username and Password fields should be filled with your Elastic Service Username and its password. Don't forget to hit __Save__ after filling in the fields:

{img type="fileId" fileId="1658"}

Then let's take a look at some Search configurations here: -+tiki-admin.php?page=search#contentadmin_search-1+-

Make sure you have __Unified search__ engine set to __Elasticsearch__. Fill the Elasticsearch URL field with the same __Endpoint URL__ from above, and __Elasticsearch index prefix__ in some convenient form such as -+Tiki_20_local_+- in our example:

{img type="fileId" fileId="1659"}

You might also want to configure your online Kibana. Go to the __Management__ tab and click on __Index Patterns__. In the index pattern field we use our index as defined above, with an asterisk in the end. In our example we chose date as our Time Filter field name. Hit the __create__ button when finished:

{img type="fileId" fileId="1660"}


Time to test our configuration: let's hit the __Rebuild index__ button here -+tiki-admin.php?page=search#contentadmin_search-1+-

A modal box should show, in which you have to hit the __Rebuild__ button, in its lower right hand corner. A screen like below will be shown meaning you've successfully indexed your Tiki with Elasticsearch online!

{img type="fileId" fileId="1661"}

Further testing of your setup can be done going to Kibana's __Discover__ tab. Set your __Time Range__ in the upper right corner to __5 years__. Hopefully you'll see a screen with a graph and beautiful index data, indicating again that your Tiki has been indexed online:

{img type="fileId" fileId="1662"}