リモートインデックスのインストール中

ユーザがWFSデータを分析したい場合(参照 データを分析し可視化する )、1つ Elasticsearch <https://www.elastic.co/products/elasticsearch> インスタンスはディレクトリの横に実装することができる.

手動で取り付ける

Https://www.elastic.co/downloads/ElasticSearchからElasticsearchをダウンロードしてファイルを解凍する.

cd es/config
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2.tar.gz
tar xvfz elasticsearch-7.4.2.tar.gz

以下のコマンドを使用して、Elasticsearchを手動で起動および停止します。

elasticsearch-7.4.2/bin/elasticsearch

その後、デフォルトインデックスを作成します:

cd es
curl -X PUT http://localhost:9200/features -H "Content-Type: application/json" -d @config/features.json
curl -X PUT http://localhost:9200/records -H "Content-Type: application/json" -d @config/records.json
curl -X PUT http://localhost:9200/searchlogs -H "Content-Type: application/json" -d @config/searchlogs.json

停止Elasticsearchの使用

elasticsearch-7.4.2/bin/elasticsearch stop

Mavenを使用したインストール

ソースコードから実行し,Mavenを用いてダウンロードする.

cd es
mvn install -Pes-download
mvn exec:exec -Des-start
curl -X PUT http://localhost:9200/features -H "Content-Type: application/json" -d @config/features.json
curl -X PUT http://localhost:9200/records -H "Content-Type: application/json" -d @config/records.json
curl -X PUT http://localhost:9200/searchlogs -H "Content-Type: application/json" -d @config/searchlogs.json

Mavenを用いた場合にElasticsearchを停止するためには,Elasticsearchがフロントモードで起動されたときにそのプロセスを停止すればよい.

設置を検査する

Http://localhost:9200/Elasticsearch管理ページにアクセスします。

接続を構成する

更新中のElasticsearch URL `WEB-INF/config.properties ,“es”を“spring.profiles.active”に追加する. ```WEB-INF/web.xml` 起動してアプリケーションを再起動する(参照 :code:`web/src/main/webResources/WEB-INF/config.properties )。