Skip to content

Elasticsearch cheatsheet owly

AppliNH edited this page Nov 2, 2020 · 1 revision

Quick cheatsheet

Works in the context of the owly project.

Get all documents from an index

Method : GET URL : localhost:9200/<chatroomId>/_search?size=10000

Get a specific document from an index

Method : GET URL : localhost:9200/<chatroomId>/_doc/<messageId>

Delete a document from an index

Method : DELETE URL : localhost:9200/<chatroomId>/_doc/<messageId>

Update a specific document from an index

Method : POST URL : localhost:9200/<chatroomId>/_doc/<messageId>/_update Payload:

{
    "doc": {
        "content":"bibi"
    }
}