Skip to content

Instantly share code, notes, and snippets.

View erichard's full-sized avatar

Erwan Richard erichard

View GitHub Profile
[
{
"requests": [
{
"auth": {
"value": "",
"authType": "none",
"authActive": true,
"addTo": "Headers",
"key": ""
@erichard
erichard / TP_carburant
Last active December 9, 2022 10:33
Collection insomnia pour formation ElasticSeach
## TP indexation
Créer l'index avec le mapping des champs : https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html
Lire les lignes du CSV des prix du carburant en France : https://www.data.gouv.fr/fr/datasets/prix-des-carburants-en-france-flux-instantane/
Transformer chaque ligne en document JSON
Envoyer les documents à ElasticSearch avec 2 méthodes possibles :
* indexation un a un : https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html
* bulk opération : https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html