Angular 6 ElasticSearch – Quick Start – How to add Elasticsearch.js
In this tutorial, we're gonna look at how to add ElasticSearch to an Angular 6 Project.
Related Posts:
- Angular 6 ElasticSearch example – Add Document to Index
- Angular 6 ElasticSearch example – Get All Documents in Index
- Angular 6 ElasticSearch example – Documents Pagination with Scroll
- Angular 6 ElasticSearch example – simple Full Text Search
** Elasticsearch Tutorials **
Install ElasticSearch
Go to ElasticSearch guide - Getting Started » Installation and follow step by step to install ElasticSearch.
Test local install of ElasticSearch
- by command line:
curl -XGET localhost:9200
- or enter
http://localhost:9200/
url on your Browser.
The result should be like this:
{
"name":"first_node_test",
"cluster_name":"elasticsearch",
"cluster_uuid":"E8eoz-uWT0Gxi-ygUIB10Q",
"version":{
"number":"6.3.2",
"build_flavor":"unknown",
"build_type":"unknown",
"build_hash":"053779d",
"build_date":"2018-07-20T05:20:23.451332Z",
"build_snapshot":false,
"lucene_version":"7.3.1",
"minimum_wire_compatibility_version":"5.6.0",
"minimum_index_compatibility_version":"5.0.0"
},
"tagline":"You Know, for Search"
}
Add ElasticSearch to Angular 6 Project
1. Install the type definition
Run command:
npm install --save-dev @types/elasticsearch
You will see an elasticsearch directory in node_modules folder:
More at:
Angular 6 ElasticSearch – Quick Start – How to add Elasticsearch.js
Top comments (0)