ElasticSearch instructions broken link

So I want to get ElasticSearch working.

The guide is here. https://github.com/nextcloud/fulltextsearch/wiki/Basic-Installation

It says follow the instructions in https://www.elastic.co/guide/en/beats/libbeat/current/elasticsearch-installation.html

That second link is broken.

Can anyone post what it should be? This is the first time I have done anything with ElasticSearch and I would like to start in the right place.

Try this one: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html

Thanks. I did stumble across that earlier.

I am happy to go with https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html

It is just looked rather different to

https://www.elastic.co/guide/en/beats/libbeat/current/elasticsearch-installation.html

in relation to beats/libbeat and as I said I wanted to be sure I am installing the right thing.

Okay, so I have installed ElasticSearch.

Onto the next step in

Now the command in

https://www.elastic.co/guide/en/elasticsearch/plugins/current/ingest-attachment.html

does not work.

root@server:/usr/share/elasticsearch/bin# sudo bin/elasticsearch-plugin install ingest-attachment
sudo: bin/elasticsearch-plugin: command not found

root@server:/usr/share/elasticsearch/plugins# sudo bin/elasticsearch-plugin install ingest-attachment
sudo: bin/elasticsearch-plugin: command not found

Where am I supposed to run this?

SOLVED

root@server:/usr/share/elasticsearch# sudo bin/elasticsearch-plugin install ingest-attachment