We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a35cf00 commit 22d1a25Copy full SHA for 22d1a25
1 file changed
README.md
@@ -436,6 +436,21 @@ $searchParameters->scriptFields([
436
],
437
]);
438
439
+// runtime mappings
440
+$searchParameters->runtimeMappings([
441
+ 'day_of_week' => [
442
+ 'type' => 'long',
443
+ 'script' => [
444
+ 'lang' => 'painless',
445
+ 'source' => 'doc[params.field] * params.multiplier',
446
+ 'params' => [
447
+ 'field' => 'my_field',
448
+ 'multiplier' => 2,
449
+ ],
450
451
452
+]);
453
+
454
// boost indices
455
$searchParameters->indicesBoost([
456
['my-alias' => 1.4],
0 commit comments