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
: For write operations on system indices. Thread pool type is `fixed` with a default maximum size of `min(5, (`[`# of allocated processors`](#node.processors)`) / 2)`.
73
73
74
+
`system_write_coordination`
75
+
: For bulk request coordination operations on system indices. Thread pool type is `fixed` with a default maximum size of `min(5, (`[`# of allocated processors`](#node.processors)`) / 2)`.
76
+
74
77
`system_critical_read`
75
78
: For critical read operations on system indices. Thread pool type is `fixed` with a default maximum size of `min(5, (`[`# of allocated processors`](#node.processors)`) / 2)`.
Here is an example using the `query_vector_builder`:
238
+
239
+
```json
240
+
{
241
+
"query": {
242
+
"knn": {
243
+
"field": "inference_field",
244
+
"k": 10,
245
+
"num_candidates": 100,
246
+
"query_vector_builder": {
247
+
"text_embedding": {
248
+
"model_text": "test"
249
+
}
250
+
}
251
+
}
252
+
}
253
+
}
254
+
```
255
+
256
+
Note that for `semantic_text` fields, the `model_id` does not have to be
257
+
provided as it can be inferred from the `semantic_text` field mapping.
258
+
259
+
Knn search using query vectors over `semantic_text` fields is also supported,
260
+
with no change to the API.
261
+
232
262
## Knn query with aggregations [knn-query-aggregations]
233
263
234
264
`knn` query calculates aggregations on top `k` documents from each shard. Thus, the final results from aggregations contain `k * number_of_shards` documents. This is different from the [top level knn section](docs-content://solutions/search/vector/knn.md) where aggregations are calculated on the global top `k` nearest documents.
Copy file name to clipboardExpand all lines: docs/reference/search-connectors/es-connectors-mongodb.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -249,8 +249,23 @@ The full host in this example will look like this:
249
249
250
250
A bug introduced in **8.12.0** causes the Connectors docker image to error out if run using MongoDB as its source. The command line will output the error `cannot import name 'coroutine' from 'asyncio'`. *** This issue is fixed in versions *8.12.2** and **8.13.0**. ** This bug does not affect Elastic managed connectors.
251
251
252
-
See [Known issues](/release-notes/known-issues.md) for any issues affecting all connectors.
252
+
#### UUIDs are not correctly deserialized, causing problems with ingesting documents into Elasticsearch
253
+
254
+
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.
255
+
256
+
With connector framework version 9.0.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.
257
+
258
+
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`
253
259
260
+
If you’re using a legacy UUID representation, you should adjust the connection URI accordingly. For example:
261
+
262
+
- C#: `uuidRepresentation=csharpLegacy`
263
+
- Java: `uuidRepresentation=javaLegacy`
264
+
- Python: `uuidRepresentation=pythonLegacy`
265
+
266
+
You can find a full explanation in the [official docs](https://pymongo.readthedocs.io/en/stable/examples/uuid.html#configuring-a-uuid-representation).
267
+
268
+
See [Known issues](/release-notes/known-issues.md) for any issues affecting all connectors.
0 commit comments