OpenSearch/modules
Mayya Sharipova 643bb20137
Add a new query type - ScriptScoreQuery (#34533)
* Add a new query type - ScriptScoreQuery

script_score query uses script to calculate document scores.
Added as a substitute for function_score with an intentation
to deprecate function_scoreq query.

```http
GET /_search
{
    "query": {
        "script_score" : {
            "query": {
                "match": { "message": "elasticsearch" }
            },
            "script" : {
              "source": "Math.log(2 + doc['likes'].value)"
            },
            "min_score" : 2
        }
    }
}
```

Add several functions to painless to be used inside script_score:

double rational(double, double)
double sigmoid(double, double, double)
double randomNotReproducible() 
double randomReproducible(String, int) 

double decayGeoLinear(String, String, String, double, GeoPoint)
double decayGeoExp(String, String, String, double, GeoPoint)
double decayGeoGauss(String, String, String, double, GeoPoint)

double decayNumericLinear(String, String, String, double, double)
double decayNumericExp(String, String, String, double, double)
double decayNumericGauss(String, String, String, double, double)

double decayDateLinear(String, String, String, double, JodaCompatibleZonedDateTime)
double decayDateExp(String, String, String, double, JodaCompatibleZonedDateTime)
double decayDateGauss(String, String, String, double, JodaCompatibleZonedDateTime)

Date functions only works on dates in  the default format and default time zone
2018-11-20 16:10:06 -05:00
..
aggs-matrix-stats Add a new "contains" feature (#34738) 2018-10-25 08:50:50 +03:00
analysis-common Remove build qualifier from server's Version (#35172) 2018-11-07 14:01:05 +02:00
ingest-common ingest: dot_expander_processor prevent null add/append to source document (#35106) 2018-11-05 17:16:42 -06:00
lang-expression [Scripting] Use Number as a return value for BucketAggregationScript (#35653) 2018-11-16 12:33:01 -08:00
lang-mustache Remove build qualifier from server's Version (#35172) 2018-11-07 14:01:05 +02:00
lang-painless Add a new query type - ScriptScoreQuery (#34533) 2018-11-20 16:10:06 -05:00
mapper-extras Upgrade to lucene-8.0.0-snapshot-31d7dfe6b1 (#35224) 2018-11-06 11:55:23 +01:00
parent-join Add parent-aggregation to parent-join module (#34210) 2018-11-08 14:13:00 +01:00
percolator Ignore date ranges containing 'now' when pre-processing a percolator query (#35160) 2018-11-07 20:41:27 +01:00
rank-eval Prevent throttled indices to be searched through wildcards by default (#34354) 2018-11-06 09:45:30 +01:00
reindex Remove remaining line length violations for o.e.index (#35652) 2018-11-20 08:09:14 +01:00
repository-url Remove AbstractComponent from AbstractLifecycleComponent (#35560) 2018-11-19 09:51:32 -07:00
transport-netty4 Remove AbstractComponent from AbstractLifecycleComponent (#35560) 2018-11-19 09:51:32 -07:00
build.gradle Painless: Add spi jar that will be published for extending whitelists (#28302) 2018-01-18 19:16:26 -08:00