diff --git a/src/Nest/DSL/Query/MultiMatchQueryDescriptor.cs b/src/Nest/DSL/Query/MultiMatchQueryDescriptor.cs index 0e8bbbbf122..1548d64a9fd 100644 --- a/src/Nest/DSL/Query/MultiMatchQueryDescriptor.cs +++ b/src/Nest/DSL/Query/MultiMatchQueryDescriptor.cs @@ -77,6 +77,13 @@ public MultiMatchQueryDescriptor OnFields( this._Fields = objectPaths.Select(e=>(PropertyPathMarker)e); return this; } + public MultiMatchQueryDescriptor OnFieldsWithBoost(Action>, double?>> boostableSelector) + { + var d = new FluentDictionary>, double?>(); + boostableSelector(d); + this._Fields = d.Select(o => PropertyPathMarker.Create(o.Key, o.Value)); + return this; + } public MultiMatchQueryDescriptor Query(string query) {