APIs in ES

To communicate with ES using a webbrowser, some e.g.s

Cat APIs

IPaddress:9200/_cat/indices

Search APIs

IPaddress:9200/_search?q=fieldname:valuename

Can Documents APIs like PUT,POST,DELETE be used in the same way as above?

Yes.

GET _cat/indices
PUT index/type/id
POST index/_search
DELETE index

So meaning in the brower address bar is it like the below?

IPaddress:9200/get/_cat/indices
IPaddress:9200/put/index/type/id
IPaddress:9200/post/index/_search

Nah, you will want to do this via a terminal using curl

curl -XGET ipaddress:9200/_cat/indices
curl -XPUT ipaddress:9200/index/type/id
curl -XDELETE ipaddress:9200/index

Thats fine. Can the above commands be used without the terminal?

Like
IPadress:9200 _cat/indices could be used straight on the broswer.

What are the other commands that could be used straight on the browser without the use of terminal?

/_cat
&&
/_cluster
See more here: https://www.elastic.co/guide/en/elasticsearch/guide/current/_talking_to_elasticsearch.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.