mbuhot / eskotlin

Elasticsearch Query DSL for Kotlin
MIT License
136 stars 28 forks source link

Add top level field_value_function support #38

Closed champloo11 closed 4 years ago

champloo11 commented 4 years ago

Elasticsearch supports a top-level parameter called "field_value_factor" that manipulates the score based on a function and a property within the document.

This change brings that same top-level support to the DSL to make it easier to discover, since the value is not frequently used within the functions array (although it is supported).