Add files to addons/Detektivo.
Create config file detektivo.yaml config/detektivo.yaml
:
Algolia (https://www.algolia.com):
engine: algolia
app_id: YLXXXXXXXYE
api_key: xxxxxx85b706f0daaexxxxxxxx
ElasticSearch (https://www.elastic.co):
engine: elasticsearch
hosts: [http://localhost:32769]
index: cockpit
TNTSearch (https://github.com/teamtnt/tntsearch):
engine: tntsearch
Collections + fields to index
collections:
posts: [title, excerpt, content]
Detektivo entry point:
/api/detektivo/collection/{name}?token=*apitoken*&q={searchterm}