DevOps Classroom Series – 19/Jul/2020

Elastic Search CRUD Operations

  • Index API:
    • Lets create a request to insert a document of type _doc in the index bookstore with an id 1
    • Lets create a request to insert a document of type _doc in the index bookstore without id
    • Now lets use Get request to Get document
    • Update the price of the document which is in bookstore index with id 1
    • lets delete the document
    • Searching docs
    • Search in multiple indexes
    • Search all the documents of particular type in all indexes
    GET /_all/_doc/_search
    
    • Range query with values
    • Range can also be checked with dates
    GET /bookstore/_search
    {
    "query": {
        "range": {
        "orderData": {
            "gte": "10/07/2020",
            "lte": "10/08/2020",
            "format": "dd/MM/yyyy"
        }
        }
    }
    }
    
    • Exists query
    • Term query
    • Match queries

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%