This is the project and resources accompanying the Elasticsearch First Steps Live Online training on O'Reilly. Please follow the wiki pages for sample code and accompanying subject matter
My Elasticsearch in Action book
My Elasticsearch in Action (second edition) is available for early access: Elasticsearch in Action (second edition) Book
Please refer to the accompanied Wiki pages for the full notes
Samples
//get data from old index to new index -- reindexing api
//what is mapping - define datatype for your object keyword means it cannot be analized or broken so LHC-ABC will not be broken down GET flights/_mapping
// in case of post you dont neet to give the index id POST flights/_doc { "name":"flightaddedwithpost", "date":"2021-08-11" }
POST flights/_doc/1 { "name":"flight123" }
GET flights/_doc/1
//indexinfortion GET flights
//search the index GET flights/_search { "query": { "match":{ "name":"flight" } } }
GET _cluster/health
DELETE flights
PUT cars { "mappings": { "properties": { "name": {"type":"text"} }, "date": {"type":"date"} }
"settings": { "number_of_shards": 1 , "number_of_replicas": 1 }
}
POST flights/_bulk {
}