You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
====== UUIDs are not correctly deserialized, causing problems with ingesting documents into Elasticsearch
206
+
207
+
MongoDB has special handling of UUID type: there is a legacy and a modern approach. You can read [official docs](https://pymongo.readthedocs.io/en/stable/examples/uuid.html) about the details.
208
+
209
+
With connector framework version 8.18.3, we improved how standard UUIDs are handled. Now, the MongoDB connector can correctly deserialize UUIDs into valid Elasticsearch values. However, for legacy UUIDs or older connector versions, you might need to adjust the connection string to specify the UUID representation.
210
+
211
+
For example, if you are using the modern UUID representation, adding the `uuidRepresentation=standard` query parameter to the MongoDB connection URI in the `host` Rich Configurable Field will allow the connector to properly handle UUIDs. With this change, the full `host` Rich Configurable Field value could look like this:`mongodb+srv://my_username:[email protected]/mydb?w=majority&uuidRepresentation=standard`
212
+
213
+
If you’re using a legacy UUID representation, you should adjust the connection URI accordingly. For example:
214
+
215
+
- C#: `uuidRepresentation=csharpLegacy`
216
+
- Java: `uuidRepresentation=javaLegacy`
217
+
- Python: `uuidRepresentation=pythonLegacy`
218
+
219
+
You can find full explanation in the [official docs](https://pymongo.readthedocs.io/en/stable/examples/uuid.html#configuring-a-uuid-representation).
220
+
204
221
See <<es-connectors-known-issues>> for any issues affecting all connectors.
205
222
206
223
[discrete#es-connectors-mongodb-troubleshooting]
@@ -589,6 +606,23 @@ The command line will output the error `cannot import name 'coroutine' from 'asy
589
606
** This issue is fixed in versions *8.12.2* and *8.13.0*.
590
607
** This bug does not affect Elastic managed connectors.
====== UUIDs are not correctly deserialized, causing problems with ingesting documents into Elasticsearch
611
+
612
+
MongoDB has special handling of UUID type: there is a legacy and a modern approach. You can read [official docs](https://pymongo.readthedocs.io/en/stable/examples/uuid.html) about the details.
613
+
614
+
With connector framework version , we improved how standard UUIDs are handled. Now, the MongoDB connector can correctly deserialize UUIDs into valid Elasticsearch values. However, for legacy UUIDs or older connector versions, you might need to adjust the connection string to specify the UUID representation.
615
+
616
+
For example, if you are using the modern UUID representation, adding the `uuidRepresentation=standard` query parameter to the MongoDB connection URI in the `host` Rich Configurable Field will allow the connector to properly handle UUIDs. With this change, the full `host` Rich Configurable Field value could look like this:`mongodb+srv://my_username:[email protected]/mydb?w=majority&uuidRepresentation=standard`
617
+
618
+
If you’re using a legacy UUID representation, you should adjust the connection URI accordingly. For example:
619
+
620
+
- C#: `uuidRepresentation=csharpLegacy`
621
+
- Java: `uuidRepresentation=javaLegacy`
622
+
- Python: `uuidRepresentation=pythonLegacy`
623
+
624
+
You can find full explanation in the [official docs](https://pymongo.readthedocs.io/en/stable/examples/uuid.html#configuring-a-uuid-representation).
625
+
592
626
See <<es-connectors-known-issues>> for any issues affecting all connectors.
0 commit comments