This tutorials explains about how to install Elastic search on Windows machine.

This can be installed in two ways.

  • Install using Zip file
  • Install as window Service

This is developed using java language, So java installation is prerequisite.

Elastic Search installation on windows

Following are step by step for installation on windows.

  • First, Go to here
  • Download installer that is zip file
  • It downloads elasticsearch-8.6.1-windows-x86_64.zip file into local folder
  • Extract and copy to Drive folder, For example, A:\Java\elasticsearch-8.6.1

How do I start Elasticsearch on Windows?

To start elastic search in windows, Please following steps

  • Open Command Prompt, and got to the directory bin folder A:\Java\elasticsearch-8.6.1\bin

  • type elasticsearch.bat command, starts the server as given below

A:\Java\elasticsearch-5.0.0\bin>elasticsearch.bat
[2023-02-04T18:53:30,142][INFO ][o.e.n.Node               ] [] initializing ...
[2023-02-04T18:53:30,568][INFO ][o.e.e.NodeEnvironment    ] [aRfhvI2] using [1] data paths, mounts [[Work (A:)]], net usable_space [85.2gb], net total_space [195.3gb], spins? [unknown], types [NTFS]
[2023-02-04T18:53:30,568][INFO ][o.e.e.NodeEnvironment    ] [aRfhvI2] heap size [1.9gb], compressed ordinary object pointers [true]
[2023-02-04T18:53:30,568][INFO ][o.e.n.Node               ] [aRfhvI2] node name [aRfhvI2] derived from node ID; set [node.name] to override
[2023-02-04T18:53:30,615][INFO ][o.e.n.Node               ] [aRfhvI2] version[5.0.0], pid[4980], build[253032b/2016-10-26T04:37:51.531Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [aggs-matrix-stats]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [ingest-common]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [lang-expression]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [lang-groovy]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [lang-mustache]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [lang-painless]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [percolator]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [reindex]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [transport-netty3]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] loaded module [transport-netty4]
[2023-02-04T18:53:38,017][INFO ][o.e.p.PluginsService     ] [aRfhvI2] no plugins loaded
[2023-02-04T18:53:46,313][INFO ][o.e.n.Node               ] [aRfhvI2] initialized
[2023-02-04T18:53:46,313][INFO ][o.e.n.Node               ] [aRfhvI2] starting ...
[2023-02-04T18:53:49,436][INFO ][o.e.t.TransportService   ] [aRfhvI2] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2023-02-04T18:53:54,179][INFO ][o.e.c.s.ClusterService   ] [aRfhvI2] new_master {aRfhvI2}{aRfhvI2vQdmEcSkvKUoBmQ}{RIt05y_wRbCYNsTFwzT_UQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2023-02-04T18:53:54,288][INFO ][o.e.g.GatewayService     ] [aRfhvI2] recovered [0] indices into cluster_state
[2023-02-04T18:53:55,645][INFO ][o.e.h.HttpServer         ] [aRfhvI2] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200}
[2023-02-04T18:53:55,645][INFO ][o.e.n.Node               ] [aRfhvI2] started
  • Server started with 9200 port.
  • Open any browser, access http://localhost:9200/, It gives following message
{
  "name" : "aRfhvI2",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "QI_-wZY3QAO5YGSxNlQh5A",
  "version" : {
    "number" : "5.0.0",
    "build_hash" : "253032b",
    "build_date" : "2016-10-26T04:37:51.531Z",
    "build_snapshot" : false,
    "lucene_version" : "6.2.0"
  },
  "tagline" : "You Know, for Search"
}