~/talk

Python on OpenSearch: Bringing Native Python Scripting to Search and An...

Talkat OpenSearchCon China 2026 · 2026-03-17..03-18· [python]
links:none on file
name:Shuang Li
links:none on file
slides:none on file

Plugin runs Python inside OpenSearch via GraalVM polyglot context, executing scripts with document fields and query parameters bound directly from Java; demos show regex and JSON extraction from logs, e‑commerce ranking using bundled NumPy, and live LLM HTTP calls at query time. Implementation uses AST parsing, a static semantic analyzer, hard timeouts and fresh contexts per execution. Current trade-offs: trusted sandbox for NumPy and 1.4–2.2× slower than Painless, plus third‑party libs require rebuilding the plugin; roadmap targets pooling, security policies, and optimizations.

AI-written summary · about

  1. 0:00Python in OpenSearch
  2. 2:49Python scripting demos
  3. 8:20How Python plugin works
  4. 12:17Script contexts and limits
  5. 14:47Future plans
  6. 15:38Q&A security
~/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.