Skip to content

Configure Search Functions

Satoru Takanami edited this page Dec 27, 2019 · 4 revisions

To configure search functions, Crowi requires Elasticsearch Server and its configured url passing by ENV.

Elasticsearch

Crowi 1.7 uses ES 6.x

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 ES 2.x / 5.x

  • 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 and ES 2.x

Crowi 1.5.x requires Elasticsearch 2.x with Kuromoji Analysis Plugin.

ENV

To enable search Launch Crowi with ELASTICSEARCH_URI env.

e.g.

$ (... other ENVs) ELASTICSEARCH_URI=http://127.0.0.1:19200/crowi npm start

Setup and upgrade

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.

How to use in

Heroku

Bonsai is recommended.

Sudachi support (for Japanese analyzer)

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.