Skip to content

Commit 20da198

Browse files
committed
fix #617 mention 1.0 always returns the full envelopped elasticsearch response even for *Exists() calls
1 parent 26eb7fb commit 20da198

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: new_docs/contents/breaking-changes.md

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ to `PutMappingDescriptor<T>`
3838

3939
IResponse.Error.Exception no longer exists, it is inlined to IResponse.OriginalException. The Error property did not hold any information that was not available on IResponse.ConnectionStatus.
4040

41+
### Response shortcuts
42+
43+
Prior to 1.0 some calls directly returned a bool or value instead of the full envelopped Elasticsearch response.
44+
45+
i.e `client.IndexExists("myIndexName")` used to return a bool but should now be called like this:
46+
47+
client.IndexExists(i => i.Index("myIndexName")).Exists
48+
49+
4150
### Removed MapFromAttributes()
4251

4352
Attributes are to limited in what they can specify so `[ElasticType()]` can now only specify the type name and the id property.

0 commit comments

Comments
 (0)