Skip to content

Commit 64cd634

Browse files
committed
GetIndexSettings reverts back to old flatsettings behaviour (for now)
1 parent c8859be commit 64cd634

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Nest/ElasticClient-MappingIndex.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public partial class ElasticClient
1717
public IIndexSettingsResponse GetIndexSettings(Func<GetIndexSettingsDescriptor, GetIndexSettingsDescriptor> selector)
1818
{
1919
return this.Dispatch<GetIndexSettingsDescriptor, GetIndexSettingsQueryString, IndexSettingsResponse>(
20-
selector,
20+
s=> selector(s.FlatSettings()),
2121
(p, d) => this.RawDispatch.IndicesGetSettingsDispatch(p),
2222
(c, d) => this.Serializer.DeserializeIndexSettingsResponse(c)
2323
);
@@ -26,7 +26,7 @@ public IIndexSettingsResponse GetIndexSettings(Func<GetIndexSettingsDescriptor,
2626
public Task<IIndexSettingsResponse> GetIndexSettingsAsync(Func<GetIndexSettingsDescriptor, GetIndexSettingsDescriptor> selector)
2727
{
2828
return this.DispatchAsync<GetIndexSettingsDescriptor, GetIndexSettingsQueryString, IndexSettingsResponse, IIndexSettingsResponse>(
29-
selector,
29+
s=> selector(s.FlatSettings()),
3030
(p, d) => this.RawDispatch.IndicesGetSettingsDispatchAsync(p),
3131
(c, d) => this.Serializer.DeserializeIndexSettingsResponse(c)
3232
);

src/Nest/QueryStringParameters/FluentQueryString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public abstract class FluentQueryString<T> where T : FluentQueryString<T>
1717

1818
public T Add(string name, object value)
1919
{
20-
_QueryStringDictionary.Add(name, value);
20+
_QueryStringDictionary[name] = value;
2121
return (T)this;
2222
}
2323

0 commit comments

Comments
 (0)