jillesvangurp / kt-search

Multi platform kotlin client for Elasticsearch & Opensearch with easily extendable Kotlin DSLs for queries, mappings, bulk, and more.
MIT License
95 stars 23 forks source link

Fix OS1/OS2 typo #71

Closed hanswesterbeek closed 1 year ago

hanswesterbeek commented 1 year ago

I'm no expert on the intricacies of opensearch versioning, but I thought I'd offer this naive-PR in case this was indeed a typo.

hanswesterbeek commented 1 year ago

Full disclosure, I was encountering this when trying to setup a query using the Point In Time API. After running the client with my 'fix' in place I encountered what is probably a difference in how Opensearch and Elastic handle PIT (I knew I was going to hit it at some point...), because it replied with:

RequestIsWrong 400: {"error":"no handler found for uri [/survey-responses-v1/_pit] and method [POST]"}