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.

About learningthoughtsadmin