Book Image

ElasticSearch Blueprints

Book Image

ElasticSearch Blueprints

Overview of this book

Table of Contents (15 chapters)
Elasticsearch Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

News search


Let's consider a news vendor and their requirement to open up a news search portal. We are asked to create a user-friendly search for them.

For this, we will create some news per document and model the data around it:

  • Document 1:

    {
        "Title" : "Doctor opens online free consultation",
        "Content" : "Dr Malhotra offers his free consultation over the internet for patients. The patients can either logon to www.malhotra-help.com or mail him to [email protected]" ,
        "Author" : "Anjali Shankar"
    } 
  • Document 2:

    {
        "Title" : "Online site for buying groceries",
        "Content" : :"Folks at Factweavers INC have opened at new site called www.buygroceriesonline.com for online purchase of local groceries. The purchase can also be done by mailing to [email protected]" ,
        "Author" : "Anjali shankar"
    } 
  • Document 3:

    {
        "Title" : "India launches Make In India  campaign",
        "Content" : :"PM of India inaugurates make in India campaign" ,
        "Author" : "Ram Shankar"
    }