Skip to content

ECE-Trio/elastic-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elastic project

ECE 2020, Gr1, SubGroup 4 Composed of

  • DALMASSO Olivia
  • DIREZ Alexis
  • SEGARD Neil

Run the program

You can run python main.py in a terminal to run the script.

Explanation

Adding data

This python script will put json data (imported from a .json file) into ElasticSearch.

The program is equivalent to :

curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/python/_bulk?pretty' --data-binary @data.json

Retrieving data

Then it will make a request on the previously added data, with the following request :

{
    "query":{
       "match":{
          "account_number":13
       }
    }
}

Releases

No releases published

Packages

No packages published

Languages