~/talk

Getting Your Data into Elasticsearch: Let Me Count the Ways

Talkat PyOhio 2021 · on Saturday, 2021-07-31· [databases]
slides:none on file

Shows concrete ingestion patterns: single-document indexing via client.index for quick one-offs, file loaders parsing CSV/JSON into dicts, web-app hooks using Flask forms or Django signals to build objects, and a DSL that defines mappings and injects transforms with a Django-like API. Uses helpers.bulk for thousands to millions with built-in retries and chunking. Demonstrates Pandas-style import/export with Eland. Example dataset is a toy "is my cat evil" corpus and all approaches are shown working end-to-end.

AI-written summary · about

  1. 0:00Start
  2. 0:05Getting Your Data into Elasticsearch Jay Miller Developer Advocate, Elastic
  3. 1:33Prep pip install elasticsearch
  4. 1:59Simple Data elasticsearch-py client.index()
  5. 4:25From Inside an Application elasticsearch-dsl
  6. 6:04A lot of data replace client.index with helpers.bulk
  7. 6:25A lot of data, import elasticsearch.helpers as helpers import csv from connection import client, index
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.