Skip to content

[sdk] Add ordinary-document namespace APIs and a native Python facade #592

Done

Description

@ravi-decoverai

Phase: M - SDK simplification · Tracker: #590 · Priority: P0

Problem

TypeScript/Go already have namespace handles, but their document API exposes arrays of {name, field_type, value}, with string-encoded wire values. Python accepts ordinary dictionaries through its compatibility API, while bulk_index requires native field arrays and search_all uses a different DSL from search.

Scope

  • Add a native Python client/namespace facade alongside the OpenSearch compatibility client.
  • Add natural document input/output adapters to Python, TypeScript and Go, following the shared contract.
  • Support simple upsert, merge/update, lexical search and documented delete convenience without constructing wire field arrays.
  • Use one supported document representation for single and bulk ingestion.
  • Preserve stable IDs and return user data separately from scores, IDs, pagination and diagnostics.
  • Provide explicit schema/type overrides for keyword/date/vector and other ambiguous fields; reject unsupported values instead of silently dropping them.
  • Keep namespace handles immutable and safe to share; reuse current transport, auth and retries.
  • Preserve a low-level native request path for advanced use.

Done when

  • The same supported fixture documents round-trip in all three languages without injected type metadata or silent omission.
  • Single and bulk writes accept the same document type and have documented replace/merge semantics.
  • A short Python and TypeScript example can connect, select a namespace, write an ordinary object and perform lexical search without private transport access or explicit flush.
  • Unknown/invalid configuration and unsupported data fail with actionable errors before network I/O.
  • Repeated setup is safe and namespace selection does not mutate another handle's context.
  • Existing compatibility-client users have a migration path and regression coverage.

Dependencies and evidence

Depends on #591. This extends the clients delivered in #351.

Python client and native helpers · TypeScript client · wire document types.

Activity

  1. added
    roadmap
    area:api
    phase:M
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiphase:Mroadmap

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions