opensearch-project / opensearch-ruby

Ruby Client for OpenSearch
Apache License 2.0
93 stars 47 forks source link

Add script_score to query DSL #254

Closed quangcap closed 2 months ago

quangcap commented 3 months ago

Description

Script Score query was added to OpenSearch 2.9 and current query DSL does not support it. This PR add script_score to query DSL.

Issues Resolved

https://github.com/opensearch-project/opensearch-ruby/issues/253

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Earlopain commented 2 months ago

A licence header is still required, that note was just about the Elastic bit. You can look at how license headers currently look like at this file for example: https://github.com/opensearch-project/opensearch-ruby/blob/main/api_generator%2Flib%2Faction.rb

quangcap commented 2 months ago

Oh, right! Thanks for guiding me @Earlopain @dblock