-
Notifications
You must be signed in to change notification settings - Fork 169
Configure Search Functions
To configure search functions, Crowi requires Elasticsearch Server and its configured url passing by ENV.
Crowi 1.7 and later supports Elasticsearch 6.x.
To install ES, see ES 6.x installation document.
Also, see Japanese (kuromoji) Analysis Plugin
If you want to use Docker, refer Dockerfile on the repository.
- Crowi 1.6 and later supports Elasticsearch 5.x (Both ES 2.x)
To install ES, see ES's installation document.
Also, see Japanese (kuromoji) Analysis Plugin
Crowi 1.5.x requires Elasticsearch 2.x with Kuromoji Analysis Plugin.
To enable search Launch Crowi with ELASTICSEARCH_URI
env.
e.g.
$ (... other ENVs) ELASTICSEARCH_URI=http://127.0.0.1:19200/crowi npm start
To setup the index, access /admin/search
and click Build Now
button.
nstall mappings,
You can re-build index of pages anytime from this page.
Bonsai is recommended.
Sudachi is Japanese morphological analyzer.
Crowi 1.7.0 bundles optional mapping file and Dockerfile using Sudachi.
If you try Sudachi for Japanses search, move mappings-sudachi.json
to mappings.json
on /resource/search
and rebuild search index.
And also refer /elasticsearch/Dockerfile.sudachi
to setup ES with Sudachi analyzer.