DEV Community

loizenai
loizenai

Posted on

Angular 6 ElasticSearch – Quick Start – How to add Elasticsearch.js

https://grokonez.com/frontend/angular/angular-6/angular-6-elasticsearch-example-quick-start-how-to-add-elasticsearch-js

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:

** Elasticsearch Tutorials **

Install ElasticSearch

Go to ElasticSearch guide - Getting Started » Installation and follow step by step to install ElasticSearch.

Test local install of ElasticSearch

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:

angular-6-elasticsearch-example-quick-start-node-modules

More at:

https://grokonez.com/frontend/angular/angular-6/angular-6-elasticsearch-example-quick-start-how-to-add-elasticsearch-js

Angular 6 ElasticSearch – Quick Start – How to add Elasticsearch.js

Top comments (0)