elastic-dsl-typescript
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -1,2 +0,2 @@ | ||
# [1.7.0](https://github.com/Blynskyniki/elastic-query-builder/compare/v1.6.2...v1.7.0) (2023-02-28) | ||
# [1.8.0](https://github.com/Blynskyniki/elastic-query-builder/compare/v1.7.0...v1.8.0) (2023-03-24) | ||
@@ -6,2 +6,2 @@ | ||
* Function Score ([f212aa9](https://github.com/Blynskyniki/elastic-query-builder/commit/f212aa98b98b7c9b4e2cac66beecc608e735ab6c)) | ||
* Function Score add script,gaus,linear,exp ([d94edb1](https://github.com/Blynskyniki/elastic-query-builder/commit/d94edb100bc00093e9a3de87f63f1598bc434d85)) |
@@ -24,4 +24,7 @@ import { Bool } from 'Builders/Bool'; | ||
boost?: string; | ||
max_boost?: string; | ||
min_score?: string; | ||
functions?: any[]; | ||
boost_mode?: 'multiply' | 'sum' | 'avg' | 'first' | 'max' | 'min'; | ||
score_mode?: 'multiply' | 'sum' | 'avg' | 'first' | 'max' | 'min'; | ||
boost_mode?: 'multiply' | 'sum' | 'avg' | 'replace' | 'max' | 'min'; | ||
field_value_factor?: { | ||
@@ -33,2 +36,19 @@ field: string; | ||
}; | ||
script_score?: { | ||
script: { | ||
source: string; | ||
}; | ||
}; | ||
gauss?: DecayFn; | ||
exp?: DecayFn; | ||
linear?: DecayFn; | ||
} | ||
type DecayFn = { | ||
[key: string]: Partial<{ | ||
origin: string; | ||
scale: string; | ||
offset: string; | ||
decay: string; | ||
}>; | ||
}; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// "script_score": { | ||
// "script": { | ||
// "source": "if(doc['quantity'].value > 0){return 1;}else{return 0;}" | ||
// } | ||
// }, |
{ | ||
"name": "elastic-dsl-typescript", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Node.js ElasticSearch search query builder", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
92575
1564