plugin:elasticsearch
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:elasticsearch [2019-07-04 14:34] – created annda | plugin:elasticsearch [2019-09-12 21:22] – http://github to https://github Aleksandr | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action | type : action | ||
- | lastupdate : 2019-07-04 | + | lastupdate : 2019-07-31 |
compatible : Greebo | compatible : Greebo | ||
depends | depends | ||
Line 13: | Line 13: | ||
tags : search | tags : search | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
Line 26: | Line 26: | ||
:!: **External requirements: | :!: **External requirements: | ||
- | * Elasticsearch instance (latest supported version 7.1) | + | * [[https:// |
Install the plugin using the [[plugin: | Install the plugin using the [[plugin: | ||
+ | |||
+ | Configure and setup the plugin as outlined under [[# | ||
===== Examples/ | ===== Examples/ | ||
- | The simplest way to integrate an Elasticsearch engine is to: | + | Once installed, |
- | - enter the configuration of your Elasticsearch server in the Configuration Settings, | + | |
- | - create the index (see below), | + | |
- | - let the index fill when users browse your Wiki. | + | |
- | You can use the Advanced Search Tools to filter the results by namespace and date of the last modification. | + | All [[acl|access rights]] are respected, so users will only find pages for which they have at least read privileges. |
+ | |||
+ | You can use the Advanced Search Tools to filter the results by namespace and date of the last modification. | ||
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
+ | |||
+ | To integrate this plugin, you will need to dp some configuration and run a few commands on the command line. | ||
+ | |||
+ | - enter the configuration of your Elasticsearch server in the [[plugin: | ||
+ | - create the Index | ||
+ | - create the Language Mappings | ||
+ | - index your pages | ||
+ | |||
+ | ==== Creating the Index ==== | ||
+ | |||
+ | You can use the tools provided by ElasticSearch to create the index or simply run the provided command line tool to do so: | ||
+ | |||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | The name of the index is determined by the configuration. | ||
==== Languages and fuzzy search ==== | ==== Languages and fuzzy search ==== | ||
Line 49: | Line 67: | ||
</ | </ | ||
- | If you have configured multiple languages using the [[https:// | + | If you have configured multiple languages using the [[plugin: |
At present there is no special filter that would let the user search in a particular language only. However, it is possible to filter the results by language namespaces. | At present there is no special filter that would let the user search in a particular language only. However, it is possible to filter the results by language namespaces. | ||
Line 55: | Line 73: | ||
==== Index management ==== | ==== Index management ==== | ||
- | Create | + | The pages will be indexed automatically when browsed, just like with the DokuWiki |
- | + | ||
- | < | + | |
- | ./ | + | |
- | </ | + | |
- | The pages will be indexed when browsed. When a page is updated, its entry in the index will be updated as well. You can also force indexing the whole Wiki at once using the CLI tool, for example to build the index for the first time or when you have made extensive changes (like moving pages or updating the [[https:// | + | You can also force indexing the whole Wiki at once using the CLI tool. This is recommended when you build the index for the first time or when you have made extensive changes (like moving pages or updating the [[: |
< | < | ||
Line 80: | Line 94: | ||
* search a specific language | * search a specific language | ||
* exact match (non-fuzzy search) | * exact match (non-fuzzy search) | ||
- | * integration of tags; tagged pages are shown on the results page but this bypasses Elasticsearch | + | * integration of the [[plugin: |
plugin/elasticsearch.txt · Last modified: 2024-02-15 12:01 by Aleksandr