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 Preview
    • Lets create a request to insert a document of type _doc in the index bookstore without id Preview
    • Now lets use Get request to Get document Preview Preview
    • Update the price of the document which is in bookstore index with id 1 Preview
    • lets delete the document Preview
    • Searching docs Preview
    • Search in multiple indexes Preview
    • Search all the documents of particular type in all indexes
    GET /_all/_doc/_search
    
    • Range query with values Preview
    • 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 Preview
    • Term query Preview
    • Match queries Preview Preview Preview

Leave a Reply

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

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube