chunk_id
stringlengths
26
26
page_id
stringlengths
24
24
source_name
stringclasses
50 values
product_name
stringclasses
46 values
url
stringlengths
31
126
title
stringlengths
3
78
text
stringlengths
22
8k
embedding
listlengths
1.02k
1.02k
68a95c3b5e79d242619e1565-0
68a95c3b5e79d242619e1565
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/run-command
Run a Database Command
# Run a Database Command ## Overview In this guide, you can learn how to use PyMongo to run a database command. You can use database commands to perform a variety of administrative and diagnostic tasks, such as fetching server statistics, initializing a replica set, or running an aggregation pipeline. The library pr...
[ -0.024541253224015236, 0.004100056830793619, 0.018907254561781883, 0.04848436266183853, -0.01819423772394657, -0.027043486014008522, -0.007088347338140011, 0.026951244100928307, -0.009273556992411613, -0.05768970027565956, -0.016349973157048225, -0.03987237811088562, -0.04605453088879585, ...
68a95c3b5e79d242619e1565-1
68a95c3b5e79d242619e1565
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/run-command
Run a Database Command
## Type Hints The `Database.command()` method can decode the returned BSON documents to instances of a specific class. To specify this class, construct a `CodecOptions` object and pass the class name. The class can be one of the following types: - `bson.raw_bson.RawBSONDocument`. To learn more about the `RawBSONDocum...
[ -0.056253742426633835, 0.03210838511586189, 0.03418416157364845, 0.07704247534275055, -0.023101776838302612, -0.028395747765898705, 0.000010046811439679004, 0.02378973737359047, 0.0005420288071036339, -0.06114568933844566, -0.03352629765868187, -0.04921739920973778, -0.05107039585709572, 0...
68a95c3b5e79d242619e155b-0
68a95c3b5e79d242619e155b
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/reference/previous-versions
Previous Versions
# Previous Versions The following links direct you to documentation for previous versions of PyMongo. - Version 4.6 - Version 4.5 - Version 4.4 - Version 4.3 - Version 4.2 - Version 4.1 - Version 4.0 - Version 3.13
[ -0.05744192749261856, 0.003470597555860877, -0.02304256707429886, 0.03726565092802048, 0.011374925263226032, 0.009044336155056953, -0.03887633979320526, 0.005795200355350971, -0.006279194727540016, -0.031091827899217606, 0.016479866579174995, -0.0015091632958501577, -0.04577617347240448, -...
68a95c3b5e79d242619e1555-0
68a95c3b5e79d242619e1555
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/data-formats/dates-and-times
Dates and Times
# Dates and Times ## Overview In this guide, you can learn how to handle Python `datetime` objects in PyMongo. ### Terminology Python uses a dedicated data type, `datetime.datetime`, to represent dates and times. MongoDB stores `datetime` values in *coordinated universal time (UTC)*, a global time standard local to...
[ -0.07167412340641022, -0.003952008672058582, 0.0035032699815928936, 0.028167588636279106, 0.03909820318222046, -0.03784539923071861, 0.019364291802048683, 0.01626240834593773, -0.0006248608115129173, -0.025836849585175514, -0.0005772738950327039, 0.007723495829850435, -0.06898137927055359, ...
68a95c3b5e79d242619e1555-1
68a95c3b5e79d242619e1555
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/data-formats/dates-and-times
Dates and Times
## Storing datetimes For consistency, store only UTC `datetime` values to MongoDB. When you use PyMongo to create or update a field containing a `datetime` value, the driver first checks whether the `datetime` value is naive or aware: - If the `datetime` is naive, PyMongo assumes the `datetime` is in UTC and stores i...
[ -0.045596007257699966, -0.0003468140203040093, 0.017433710396289825, 0.03230483829975128, 0.025790346786379814, 0.00821664184331894, 0.009242834523320198, 0.001620182185433805, -0.0017016291385516524, -0.04869720712304115, 0.0002366424014326185, 0.014943357557058334, -0.05917340889573097, ...
68a95c3b5e79d242619e1555-2
68a95c3b5e79d242619e1555
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/data-formats/dates-and-times
Dates and Times
### OverflowError When Decoding Dates Stored by Another Language's Driver PyMongo decodes BSON `datetime` values to instances of Python's `datetime.datetime` class. Instances of `datetime.datetime` are limited to years between `datetime.MINYEAR` (1) and `datetime.MAXYEAR` (9999). Some MongoDB drivers can store BSON da...
[ -0.05070850998163223, 0.009552602656185627, 0.02537457086145878, 0.05256266891956329, 0.0016850958345457911, -0.0005320957279764116, -0.013374331407248974, -0.008463656529784203, -0.014356943778693676, -0.06460345536470413, 0.012635544873774052, 0.012075956910848618, -0.037301015108823776, ...
69a137545ebfad7ec1c0880a-0
69a137545ebfad7ec1c0880a
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/integrations/flask-migrate-to-mongo
Tutorial: Migrate Flask From SQL to MongoDB
# Tutorial: Migrate Flask From SQL to MongoDB ## Overview This tutorial shows you how to migrate a Flask application from SQL to MongoDB. Specifically, the tutorial converts an example blog application that uses SQLAlchemy to one that uses Flask-PyMongo. The example application includes the following features: - Cr...
[ -0.018596533685922623, -0.02341211773455143, 0.0006964509375393391, 0.02119719423353672, 0.06746198236942291, -0.009527675807476044, -0.007916697300970554, 0.03354475647211075, -0.01324495393782854, -0.03411043435335159, 0.006482540164142847, -0.025060873478651047, -0.047308966517448425, -...
69a137545ebfad7ec1c0880a-1
69a137545ebfad7ec1c0880a
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/integrations/flask-migrate-to-mongo
Tutorial: Migrate Flask From SQL to MongoDB
### Update the Flask application routes Replace the contents of your `routes.py` file with the following code: ```python from flask import render_template, url_for, flash, \ redirect, request from app import app, mongo from bson.objectid import ObjectId from app.models import Post from app.forms imp...
[ 0.018435431644320488, 0.0031076932791620493, 0.023767147213220596, 0.010873537510633469, 0.04729333892464638, -0.037521447986364365, -0.021426625549793243, 0.005309803877025843, -0.007047581952065229, -0.020860984921455383, 0.023606300354003906, -0.010925693437457085, -0.05572890117764473, ...
68a95c3b5e79d242619e155c-0
68a95c3b5e79d242619e155c
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/crud/query
Query
# Query ## Overview On this page, you can see copyable code examples that show common methods you can use to find documents with PyMongo. To learn more about any of the methods shown on this page, see the link provided in each section. To use an example from this page, copy the code example into the sample applicat...
[ -0.05411452800035477, -0.00528218736872077, 0.004505516029894352, 0.06830808520317078, 0.054570525884628296, -0.02527131699025631, 0.005548609886318445, 0.03384041041135788, 0.017871640622615814, -0.03352777659893036, -0.003417552914470434, -0.01711391657590866, -0.056020963937044144, -0.0...
68a95c3b5e79d242619e153a-0
68a95c3b5e79d242619e153a
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/get-started
Get Started with PyMongo
# Get Started with PyMongo ## Overview PyMongo is a Python package that you can use to connect to and communicate with MongoDB. This guide shows you how to create an application that uses PyMongo to connect to a MongoDB cluster hosted on MongoDB Atlas. MongoDB Atlas is a fully managed cloud database service that hos...
[ -0.048702578991651535, -0.0062751187942922115, 0.027325162664055824, 0.04045010730624199, 0.040298156440258026, -0.05440237373113632, 0.018451683223247528, 0.0519670806825161, -0.012571431696414948, -0.029419580474495888, 0.004770451225340366, 0.02131006307899952, -0.04738181084394455, -0....
68a95c3b5e79d242619e1551-0
68a95c3b5e79d242619e1551
pymongo
PyMongo
https://mongodb.com/docs/languages/python/pymongo-driver/current/monitoring-and-logging/monitoring
Monitoring
# Monitoring ## Overview In this guide, you can learn how to configure **monitoring** in PyMongo by using PyMongo's callback-based interface. Monitoring is the process of gathering information about your application's behavior as it runs. This information can help you make informed decisions when designing and debugg...
[ -0.031126240268349648, 0.000748868566006422, -0.003301870310679078, 0.0621909573674202, 0.030048850923776627, -0.03987813740968704, 0.004904013592749834, 0.059362929314374924, -0.04817447066307068, -0.01352069340646267, 0.027597647160291672, -0.0020374751184135675, -0.03373014181852341, -0...
69afb7ec9a04e6cf66167020-0
69afb7ec9a04e6cf66167020
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current
MongoDB PyMongoArrow
# MongoDB PyMongoArrow ## Introduction **PyMongoArrow** is a PyMongo extension containing tools for loading MongoDB query result-sets as Apache Arrow tables, NumPy arrays, and Pandas or Polars DataFrames. PyMongoArrow is the recommended way to materialize MongoDB query result-sets as contiguous-in-memory typed array...
[ -0.047426965087652206, 0.0036208219826221466, 0.027793431654572487, 0.02618241123855114, 0.012628111056983471, -0.013309316709637642, -0.014396194368600845, 0.03856971114873886, 0.009047500789165497, -0.01304679922759533, -0.019501283764839172, -0.008668702095746994, -0.04291954264044762, ...
69afb7ec9a04e6cf66167032-0
69afb7ec9a04e6cf66167032
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/reference/previous-versions
Documentation for Versions 0.4 to 1.2
# Documentation for Versions 0.4 to 1.2 The following links direct you to documentation for previous versions of PyMongoArrow: - Version 1.2 - Version 1.1 - Version 1.0 - Version 0.7 - Version 0.6 - Version 0.5 - Version 0.4
[ -0.034778568893671036, 0.027424287050962448, 0.012762999162077904, 0.013851617462933064, 0.008238816633820534, -0.011289969086647034, -0.03295302763581276, 0.020658722147345543, 0.009013693779706955, 0.005657546687871218, 0.023698341101408005, -0.011301983147859573, -0.04857887700200081, -...
69afb7ec9a04e6cf66167026-0
69afb7ec9a04e6cf66167026
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/reference/comparison
Compare PyMongoArrow to PyMongo
# Compare PyMongoArrow to PyMongo In this guide, you can learn about the differences between PyMongoArrow and the PyMongo driver. This guide assumes familiarity with basic PyMongo and MongoDB concepts. ## Reading Data The most basic way to read data using PyMongo is: ```python coll = db.benchmark f = list(coll.find...
[ -0.008800985291600227, 0.005990955047309399, 0.024156449362635612, 0.024276304990053177, 0.018567373976111412, -0.013553437776863575, -0.036377668380737305, 0.040135107934474945, 0.02502831444144249, -0.019742680713534355, 0.005286626983433962, -0.01890186220407486, -0.025145765393972397, ...
69afb7ec9a04e6cf6616701e-0
69afb7ec9a04e6cf6616701e
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/get-started
Get Started with PyMongoArrow
# Get Started with PyMongoArrow This tutorial is intended as an introduction to working with **PyMongoArrow**. The tutorial assumes the reader is familiar with basic PyMongo and MongoDB concepts. ## Install PyMongoArrow For information about compatibility with PyMongo, PyArrow, and your operating system, see the Com...
[ -0.031660497188568115, 0.009672491811215878, 0.00940543320029974, 0.028328215703368187, 0.03802422061562538, -0.027957579120993614, -0.013544791378080845, 0.05020301789045334, -0.005106681492179632, -0.010162205435335636, 0.03921159356832504, -0.00191685080062598, -0.0072512635961174965, -...
69afb7ec9a04e6cf6616701e-1
69afb7ec9a04e6cf6616701e
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/get-started
Get Started with PyMongoArrow
### Ignore Empty Values The `write()` method optionally accepts a boolean `exclude_none` parameter. If you set this parameter to `True`, the driver doesn't write empty values to the database. If you set this parameter to `False` or leave it blank, the driver writes `None` for each empty field. The code in the followi...
[ -0.02173207513988018, 0.017609279602766037, 0.00468418188393116, 0.021613601595163345, 0.021369926631450653, -0.01206832192838192, -0.035189270973205566, 0.02734413743019104, -0.006332327611744404, -0.016664160415530205, 0.05296451970934868, -0.02689286507666111, -0.02587549388408661, -0.0...
69afb7ec9a04e6cf66167042-0
69afb7ec9a04e6cf66167042
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/schemas
Schema Examples
# Schema Examples This guide shows examples of how to use PyMongoArrow schemas in common situations. ## Nested Data with Schema When performing aggregate or find operations, you can provide a schema for nested data by using the `struct` object. There can be conflicting names in sub-documents compared to their parent...
[ -0.008780693635344505, 0.003829970257356763, 0.050575170665979385, 0.02591303549706936, 0.03298395499587059, -0.040806371718645096, -0.05772782117128372, 0.0305708646774292, -0.00217271875590086, -0.025071313604712486, 0.008253499865531921, 0.04818364605307579, -0.02540300041437149, 0.0001...
69afb7ec9a04e6cf66167023-0
69afb7ec9a04e6cf66167023
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/issues-and-help
Issues & Help
# Issues & Help In this guide, you can learn how to report issues, suggest new features, and contribute to PyMongoArrow. You can find support for general questions by using the MongoDB Stack Overflow tag or the MongoDB Reddit community. ## Bugs and Feature Requests To report a bug or to request a new feature in PyM...
[ -0.011407244019210339, -0.0064784265123307705, 0.026096714660525322, 0.02570110373198986, 0.02175772748887539, -0.023055100813508034, -0.005026556551456451, 0.040944866836071014, -0.0024791976902633905, 0.0010489118285477161, 0.034832537174224854, 0.023844026029109955, -0.06268615275621414, ...
69afb7ed9a04e6cf66167066-0
69afb7ed9a04e6cf66167066
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/data-types
Data Types
# Data Types PyMongoArrow supports a majority of the BSON types. Because Arrow and Polars provide first-class support for Lists and Structs, this includes embedded arrays and documents. Support for additional types will be added in subsequent releases. For more information about BSON types, see the BSON specificatio...
[ -0.006169624626636505, 0.024584369733929634, 0.012290637008845806, 0.032159775495529175, 0.020768260583281517, 0.003197559854015708, -0.026538431644439697, 0.028408868238329887, -0.017313547432422638, -0.02624819241464138, 0.013379122130572796, 0.030499974265694618, -0.007519536651670933, ...
69afb7ed9a04e6cf66167066-1
69afb7ed9a04e6cf66167066
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/data-types
Data Types
## Strict Type Adherence When you provide a schema for data in PyMongoArrow v1.9 and later, the driver enforces strict type adherence. If a field value had a type mismatch with the schema's type for that field, the driver raises a `TypeError`. `NaN` is a valid type for all fields. To suppress `TypeErrors` and silentl...
[ -0.02037499099969864, 0.029619185253977776, 0.04907247796654701, 0.053500186651945114, 0.02577110566198826, -0.029678599908947945, -0.032044462859630585, 0.031184116378426552, 0.010408892296254635, 0.004108868073672056, 0.027855509892106056, 0.05094205215573311, -0.012657148763537407, -0.0...
69afb7ec9a04e6cf66167036-0
69afb7ec9a04e6cf66167036
pymongo-arrow
PyMongo Arrow Driver
https://mongodb.com/docs/languages/python/pymongo-arrow-driver/current/reference/release-notes
Release Notes
# Release Notes ## Changes in Version 1.14.0 PyMongoArrow v1.14.0 drops support for PyArrow 23.0. - Adds support for PyArrow 24.0 - Fixes an issue where running `find_all` in parallel on an empty result set raised an error To learn more about this release, see the 1.14.0 Release Notes on GitHub. ## Changes in Ver...
[ -0.02473275177180767, 0.03250882774591446, -0.002071927534416318, 0.021999577060341835, 0.016036147251725197, -0.01116839237511158, -0.011191537603735924, 0.0252335537225008, -0.010998748242855072, -0.012627479620277882, 0.014098350889980793, 0.0208613108843565, -0.014162554405629635, -0.0...
68a95c2b5e79d242619df72c-0
68a95c2b5e79d242619df72c
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/vector-search
Run a MongoDB Vector Search Query
# Run a MongoDB Vector Search Query ## Overview In this guide, you can learn how to perform searches on your documents by using the MongoDB Vector Search feature. The Ruby driver allows you to perform MongoDB Vector Search queries by using the aggregation framework. To learn more about performing aggregations, see th...
[ 0.0015059744473546743, -0.000265978422248736, 0.03667067363858223, 0.010942431166768074, 0.023366451263427734, 0.02589123323559761, -0.01726239174604416, 0.03783764690160751, -0.020817004144191742, -0.019794311374425888, -0.037991639226675034, 0.0035135771613568068, -0.024801835417747498, ...
68a95c2b5e79d242619df6a4-0
68a95c2b5e79d242619df6a4
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/connect/csot
Limit Server Execution Time
# Limit Server Execution Time ## Overview In this guide, you can learn how to use the `timeout_ms` option to set a timeout for server operations. When you use the Ruby driver to perform a server operation, you can limit the duration allowed for the server to finish the operation. To do so, specify a **client-side op...
[ -0.008231597021222115, -0.0166191253811121, 0.05482343211770058, -0.010452120564877987, 0.00755448779091239, 0.008904359303414822, 0.007141659501940012, 0.007835624739527702, 0.0038296182174235582, -0.021977681666612625, 0.00627234997227788, 0.007414288818836212, 0.018950339406728745, -0.0...
68a95c2b5e79d242619df706-0
68a95c2b5e79d242619df706
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/reference/upgrade
Upgrade Driver Versions
# Upgrade Driver Versions ## Overview In this section, you can identify the changes you must make to your application to upgrade your driver to a new version. Before you upgrade, perform the following actions: - Ensure the new driver version is compatible with the MongoDB Server versions your application connects t...
[ -0.054237425327301025, -0.030104253441095352, -0.006540806032717228, 0.004378061275929213, 0.0031257665250450373, 0.04995130002498627, -0.0328102633357048, -0.0007325049373321235, -0.03010530024766922, -0.015118789859116077, 0.006518857087939978, 0.013698960654437542, 0.006556510925292969, ...
68a95c2b5e79d242619df6d3-0
68a95c2b5e79d242619df6d3
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/indexes/atlas-search-index
MongoDB Search and MongoDB Vector Search Indexes
# MongoDB Search and MongoDB Vector Search Indexes ## Overview In this guide, you can learn how to programmatically manage your MongoDB Search and MongoDB Vector Search indexes by using the Ruby driver. The MongoDB Search feature enables you to perform full-text searches on collections hosted on MongoDB. To learn mo...
[ -0.0241087693721056, -0.006503012031316757, 0.048110827803611755, 0.008029661141335964, 0.02403975836932659, 0.024905160069465637, -0.04583011195063591, 0.041758131235837936, -0.040188997983932495, 0.01075789425522089, -0.04983381927013397, -0.002627982757985592, -0.01818329282104969, -0.0...
69a67d113328a617852a786c-0
69a67d113328a617852a786c
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/connect/server-selection
Server Selection
# Server Selection ## Overview The MongoDB Ruby Driver follows a defined algorithm or the read preference defined in the client options when selecting a server to read or write from. ## Server Selection Algorithm When the Ruby driver executes a read operation, it performs the following steps, in order, to select a ...
[ -0.026323605328798294, 0.00452408567070961, 0.0010967617854475975, -0.02891622483730316, -0.0034527797251939774, -0.0398312509059906, -0.003357372945174575, 0.0052506267093122005, 0.007047454826533794, -0.007794103119522333, -0.007003928534686565, 0.03000950627028942, 0.0033697362523525953, ...
69a67d113328a617852a7881-0
69a67d113328a617852a7881
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/crud/query
Query Documents
# Query Documents ## Overview On this page, you can see copyable code examples that show common Ruby driver methods you can use to read data from MongoDB. To learn more about any of the methods shown on this page, see the link provided in each section. To use an example from this page, copy the code example into th...
[ -0.05899158865213394, -0.0408097542822361, 0.012502479366958141, 0.04016220197081566, 0.039297763258218765, 0.010777969844639301, 0.0001378199813188985, 0.013996671885251999, 0.006632703822106123, -0.03942180797457695, -0.0011022849939763546, -0.022079646587371826, -0.030993694439530373, -...
69a67d113328a617852a7887-0
69a67d113328a617852a7887
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/crud/query/count
Count Documents
# Count Documents ## Overview In this guide, you can learn how to use the Ruby driver to retrieve an accurate and estimated count of the number of documents in a collection. The following methods count documents in a collection: - `count_documents`: Returns the exact number of documents that match a query filter or ...
[ -0.04251435771584511, -0.04034053534269333, 0.017428120598196983, -0.002593051875010133, 0.004533835221081972, 0.026033038273453712, -0.0033563924953341484, 0.010983074083924294, 0.018913287669420242, -0.013604759238660336, 0.013123014941811562, -0.020010441541671753, -0.0008100897539407015,...
68a95c2b5e79d242619df6db-0
68a95c2b5e79d242619df6db
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/indexes/multikey-index
Multikey Indexes
# Multikey Indexes ## Overview **Multikey indexes** are indexes that improve the performance of queries on array-valued fields. You can create a multikey index on a collection by using the `create_one` method and the same syntax that you use to create a single field index. When creating a multikey index, you must sp...
[ -0.006052130833268166, -0.029254557564854622, 0.02384859137237072, -0.02949642762541771, -0.0085850665345788, -0.029282329604029655, -0.01869906857609749, 0.040401890873909, -0.01897594891488552, -0.006683233194053173, -0.07115791738033295, -0.017849983647465706, -0.01097568217664957, -0.0...
69a67d113328a617852a7877-0
69a67d113328a617852a7877
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/crud/configure-crud
Configure CRUD Operations
# Configure CRUD Operations ## Overview In this guide, you can learn how to use the **write concern**, **read concern**, and **read preference** configurations to modify the way that MongoDB runs create, read, update, and delete (CRUD) operations on replica sets. You can set write concern, read concern, and read pre...
[ -0.039924345910549164, 0.0010890443809330463, 0.012088639661669731, 0.007338030729442835, -0.012161285616457462, -0.0012874542735517025, -0.04892638325691223, 0.01786072552204132, -0.008267908357083797, -0.03744829446077347, -0.0036875975783914328, -0.0003984938666690141, 0.00480732368305325...
69a67d113328a617852a7877-1
69a67d113328a617852a7877
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/crud/configure-crud
Configure CRUD Operations
## Retryable Reads and Writes The Ruby driver automatically retries certain read and write operations once if they fail due to a network or server error. You can explicitly disable modern retryable reads or retryable writes by setting the `retry_reads` or `retry_writes` options to `false` when you create a new client...
[ -0.05047643929719925, 0.01770230382680893, -0.003936679568141699, 0.04918307065963745, -0.010641869157552719, 0.00787299033254385, -0.0164316575974226, 0.02084595151245594, -0.03474394232034683, -0.010034436360001564, 0.014860532246530056, 0.0024316543713212013, -0.0015909898793324828, -0....
69a67d113328a617852a78dd-0
69a67d113328a617852a78dd
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/logging-and-monitoring/open-telemetry
Trace with OpenTelemetry
# Trace with OpenTelemetry ## Overview In this guide, you will learn how to use OpenTelemetry tracing with the Ruby driver. OpenTelemetry is an open source observability framework that provides a standardized way to instrument, generate, collect, and export telemetry data. The Ruby driver supports OpenTelemetry trac...
[ 0.0004592600744217634, -0.04522668942809105, 0.03441167622804642, 0.016245044767856598, 0.007272791117429733, -0.021599268540740013, -0.0023000133223831654, 0.03192815184593201, -0.0696440041065216, -0.007231180556118488, 0.007791610434651375, -0.036148782819509506, -0.00905026588588953, -...
69a67d113328a617852a78dd-1
69a67d113328a617852a78dd
ruby-driver
Ruby Driver
https://mongodb.com/docs/ruby-driver/current/logging-and-monitoring/open-telemetry
Trace with OpenTelemetry
## Error Handling When operations fail, the driver records exceptions in the span by using OpenTelemetry's exception recording mechanism. The span status is then set to `ERROR`. For MongoDB operation failures, the `db.response.status_code` attribute contains the error code. Errors do not prevent the driver from rais...
[ -0.019776690751314163, -0.0363885872066021, 0.009711721912026405, 0.061530280858278275, 0.034272823482751846, -0.005470392294228077, 0.03792846202850342, 0.009374218061566353, -0.0684899166226387, -0.003433787263929844, 0.01940038800239563, -0.03790003061294556, -0.021639801561832428, -0.0...
68a95c2f5e79d242619dfbec-0
68a95c2f5e79d242619dfbec
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/issues-and-help
Issues & Help
# Issues & Help We are lucky to have a vibrant MongoDB Rust community that includes users with varying levels of experience using the Rust driver. You can find support for general questions by using the MongoDB Stack Overflow tag or the MongoDB Reddit community. To learn more, visit the support channels. ## Bugs / ...
[ 0.008720357902348042, -0.025406144559383392, 0.050122834742069244, 0.01071265060454607, 0.013160164467990398, -0.0038289292715489864, 0.004360984079539776, 0.04959922283887863, -0.002045336179435253, -0.026601450517773628, 0.02363094687461853, 0.029495202004909515, -0.06005018949508667, -0...
69d7454c549f5046064e2e33-0
69d7454c549f5046064e2e33
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/bulk
Bulk Operations
# Bulk Operations ## Overview In this guide, you can learn how to use the Rust driver to perform **bulk operations**. Bulk operations perform multiple write operations against one or more **namespaces**. A namespace is a combination of the database name and the collection name, in the format `<database>.<collection>...
[ 0.007216881029307842, -0.03264167159795761, 0.058820758014917374, 0.03613272309303284, -0.013338879682123661, 0.00005942598363617435, 0.006018119398504496, 0.05122905969619751, -0.026799526065587997, 0.007220013532787561, 0.024443937465548515, 0.012780723161995411, -0.030018286779522896, -...
69d7454c549f5046064e2e33-1
69d7454c549f5046064e2e33
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/bulk
Bulk Operations
### Replace To perform a bulk replace operation, create a `ReplaceOneModel` instance for each document you want to replace. Then, pass a list of models to the `bulk_write()` method. The following table describes `ReplaceOneModel` fields that you can set by calling their corresponding builder methods: <table> <tr> <t...
[ -0.0046101841144263744, -0.033233772963285446, 0.04359561577439308, 0.04763183742761612, -0.013647546991705894, -0.0027658678591251373, -0.026861203834414482, 0.040455859154462814, -0.027970120310783386, 0.008286169730126858, -0.004800519905984402, -0.0015016444958746433, -0.0213500913232564...
69d7454c549f5046064e2e33-2
69d7454c549f5046064e2e33
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/bulk
Bulk Operations
### Delete To perform a bulk delete operation, create a `DeleteOneModel` or `DeleteManyModel` instance for each delete operation. Then, pass a list of models to the `bulk_write()` method. A `DeleteOneModel` deletes only one document that matches a filter, while a `DeleteManyModel` deletes all documents that match a fi...
[ -0.012593950144946575, -0.03426988795399666, 0.06234223395586014, 0.04393854737281799, -0.0028035854920744896, -0.005594089161604643, -0.019970012828707695, 0.02047821320593357, -0.0018461593426764011, 0.021082034334540367, 0.0006902445456944406, 0.014543527737259865, -0.003912727348506451, ...
69d7454c549f5046064e2e33-3
69d7454c549f5046064e2e33
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/bulk
Bulk Operations
### Example This example attempts to perform update and insert operations on the `mushrooms` collection. The following code sets the `ordered` field to `false` by chaining the `ordered()` method to the `bulk_write()` method: ```rust let mushrooms: Collection<Document> = client.database("db").collection("mushrooms"); ...
[ -0.009165538474917412, -0.008240359835326672, 0.04662424698472023, 0.06655997037887573, -0.00815335288643837, -0.014651987701654434, -0.008769695647060871, 0.025561628863215446, -0.01406375877559185, 0.009605555795133114, 0.03354058787226677, 0.005453667137771845, -0.06015206128358841, -0....
69d7454c549f5046064e2f25-0
69d7454c549f5046064e2f25
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/vector-search
MongoDB Vector Search
# MongoDB Vector Search ## Overview In this guide, you can learn how to perform searches on your documents by using the MongoDB Vector Search feature. The Rust driver allows you to perform MongoDB Vector Search queries by using the aggregation framework. To learn more about performing aggregations, see the Aggregatio...
[ 0.020198719576001167, 0.0034659584052860737, 0.048149723559617996, 0.03063402697443962, 0.013135996647179127, 0.015733718872070312, -0.0032945326529443264, 0.05430879443883896, -0.011730186641216278, -0.02185690775513649, -0.03932205215096474, -0.01554760243743658, -0.031388312578201294, -...
69d7454c549f5046064e2eca-0
69d7454c549f5046064e2eca
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/indexes
Indexes
# Indexes ## Overview In this guide, you can learn how to use the Rust driver to create and manage **indexes**. Indexes are special data structures that improve query performance in MongoDB. If you perform a query on a collection without any indexes, MongoDB scans every document to find matches. These collection sca...
[ -0.005399193614721298, -0.004167945124208927, -0.0013564246473833919, 0.029290450736880302, -0.014897480607032776, -0.010016576386988163, -0.0034408571664243937, 0.08088131248950958, -0.004591008182615042, -0.02486087754368782, -0.05062997341156006, -0.03646707162261009, -0.05073509365320206...
69d7454c549f5046064e2eca-1
69d7454c549f5046064e2eca
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/indexes
Indexes
### Text Indexes A text index supports text query queries on string content. This index references a field with a string value or a string array value. MongoDB supports text query for several languages. When you create a text index, you can specify the default language as an option. A collection can only contain one ...
[ 0.0017891143215820193, -0.004725127946585417, -0.0068578156642615795, 0.03613918647170067, -0.007982040755450726, -0.003033881774172187, -0.005726929754018784, 0.0759560763835907, -0.045689478516578674, -0.009121319279074669, -0.045431215316057205, -0.0646023377776146, -0.02811838872730732, ...
69d7454c549f5046064e2ef7-0
69d7454c549f5046064e2ef7
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/security/authentication
Authentication Mechanisms
# Authentication Mechanisms ## Overview In this guide, you can learn how to authenticate to MongoDB by using the **authentication mechanisms** available in MongoDB Server. Authentication mechanisms are processes by which the driver and server confirm the identity of a client to ensure security before connecting. To ...
[ 0.005133946426212788, -0.016284503042697906, -0.0014274712884798646, -0.004650575574487448, 0.021333664655685425, -0.05645282566547394, -0.0011967845493927598, 0.05485238507390022, 0.024483243003487587, -0.027594953775405884, -0.022728241980075836, -0.00012259522918611765, -0.011299516074359...
69d7454c549f5046064e2e45-0
69d7454c549f5046064e2e45
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/delete
Delete Documents
# Delete Documents ## Overview In this guide, you can learn how to remove documents from your MongoDB collections using **delete operations**. This guide includes the following sections: - Sample Data for Examples presents the sample data that is used by the delete operation example - Delete Operations describes h...
[ -0.029417866840958595, -0.04905454069375992, 0.05528314411640167, 0.0340598039329052, 0.02662843093276024, 0.027816567569971085, -0.006671153474599123, 0.003110332880169153, 0.003760688006877899, -0.012223762460052967, -0.001130428398028016, -0.004704477731138468, 0.0017461377428844571, -0...
69d7454c549f5046064e2e45-1
69d7454c549f5046064e2e45
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/delete
Delete Documents
### Full File Example: Delete Multiple Documents This example deletes all documents that match a query filter from the `restaurants` collection in the `sample_restaurants` database. The `delete_many()` method deletes documents in which the value of the `borough` field is `"Manhattan"` and the value of the `address.str...
[ -0.02049054205417633, -0.055486589670181274, 0.04876254126429558, 0.052653368562459946, 0.030122023075819016, 0.02253173664212227, -0.012292888015508652, 0.01865840144455433, 0.013545097783207893, -0.007573206443339586, -0.0019617632497102022, 0.023972192779183388, -0.0025321082212030888, ...
69d7454c549f5046064e2e9c-0
69d7454c549f5046064e2e9c
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/web-app-tutorial
CRUD Web App with Rocket
# CRUD Web App with Rocket ## Overview In this tutorial, you can learn how to create a Rust web application by using the Rocket web framework. The Rust driver allows you to leverage features such as memory management, lifetimes, and database pooling to improve your application's performance. After you complete this ...
[ 0.02772764302790165, -0.021908996626734734, 0.06550431996583939, 0.038300275802612305, 0.024353185668587685, -0.052818041294813156, 0.031802911311388016, 0.05417289957404137, -0.03938300162553787, -0.051327239722013474, 0.022451182827353477, -0.005017191171646118, -0.023518560454249382, 0....
69d7454c549f5046064e2e9c-1
69d7454c549f5046064e2e9c
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/web-app-tutorial
CRUD Web App with Rocket
### Write CRUD operation routes. #### Create When you attempt to create data in MongoDB, there are two possible outcomes: - Document is successfully created, so your app returns `HTTP 201`. - Error occurred during insertion, so your app returns `HTTP 400`. Paste the following `create_recipe()` route under the `// ...
[ 0.0033958572894334793, -0.027486974373459816, 0.055663611739873886, 0.044983383268117905, 0.04125899821519852, -0.01749364100396633, -0.01462196372449398, 0.028741471469402313, -0.015480967238545418, -0.056533411145210266, 0.0384913831949234, 0.02409079670906067, -0.0387825109064579, -0.00...
69d7454c549f5046064e2e96-0
69d7454c549f5046064e2e96
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/update/replace
Replace Documents
# Replace Documents ## Overview In this guide, you can learn how to use the Rust driver to replace documents in a MongoDB collection by using the `replace_one()` method. Replace operations remove all existing fields of a document except for the `_id` field and substitute the removed fields with new fields and values...
[ 0.0016123992390930653, -0.039459966123104095, 0.050005171447992325, 0.04206661507487297, 0.02882862091064453, -0.002664378145709634, -0.015228582546114922, 0.009176049381494522, 0.0002860034292098135, -0.024183541536331177, 0.025607813149690628, -0.034100908786058426, -0.03255430608987808, ...
69d7454c549f5046064e2e96-1
69d7454c549f5046064e2e96
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/crud/update/replace
Replace Documents
## Modify Replace Behavior You can modify the behavior of the `replace_one()` method by calling options methods that set `ReplaceOptions` struct fields. You can set `ReplaceOptions` fields by chaining option builder methods directly to the `replace_one()` method call. If you're using an earlier version of the driver,...
[ 0.014222292229533195, -0.020490115508437157, 0.03520677238702774, 0.025804618373513222, 0.0131745096296072, -0.004526552278548479, -0.04786156490445137, 0.00290280650369823, -0.024981223046779633, -0.010199242271482944, -0.022568728774785995, -0.03435642272233963, -0.008665332570672035, -0...
69d7454c549f5046064e2f18-0
69d7454c549f5046064e2f18
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/security/authentication/oidc
OIDC (Workload Identity Federation)
# OIDC (Workload Identity Federation) ## Overview The MONGODB-OIDC authentication mechanism requires MongoDB Server v7.0 or later running on a Linux platform. The Rust driver supports OpenID Connect (**OIDC**) authentication for **workload identities**. A workload identity is an identity you assign to a software wor...
[ 0.05377611517906189, 0.0222182497382164, 0.0005715995794162154, 0.014511789195239544, -0.009293589740991592, -0.04753826558589935, 0.0354585200548172, 0.029925448819994926, 0.013623446226119995, -0.03698039427399635, 0.0015041696606203914, -0.007836075499653816, 0.007618137169629335, -0.06...
69d7454c549f5046064e2f1a-0
69d7454c549f5046064e2f1a
rust
Rust Driver
https://mongodb.com/docs/drivers/rust/current/security/authentication/scram
SCRAM
# SCRAM ## Overview **Salted Challenge Response Authentication Mechanism (SCRAM)** is a family of authentication mechanisms that use a username and password to authenticate to a server. The Rust driver supports the following SCRAM-based authentication mechanisms: - SCRAM-SHA-256: An authentication mechanism that us...
[ 0.0032009726855903864, -0.016077755019068718, 0.018138408660888672, 0.013891992159187794, 0.0012791176559403539, -0.03624049946665764, -0.0020570126362144947, 0.02865072898566723, 0.022060273215174675, -0.02267438918352127, -0.03750438615679741, -0.011481588706374168, -0.01056334562599659, ...
6a8940c56b548fccc780d8ae-0
6a8940c56b548fccc780d8ae
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/connect/connection-options/connection-pools
Connection Pools
# Connection Pools ## Overview In this guide, you can learn about how the Scala driver uses connection pools to manage connections to a MongoDB deployment and how you can configure connection pool settings in your application. A connection pool is a cache of open database connections maintained by the Scala driver. ...
[ -0.03222186118364334, 0.009705710224807262, 0.05020866170525551, 0.03890622407197952, -0.011269875802099705, -0.008659394457936287, -0.041253380477428436, 0.04949408769607544, -0.00821378082036972, -0.033807117491960526, 0.041200943291187286, 0.0050939274951815605, -0.029745010659098625, -...
6a8940c56b548fccc780d8b1-0
6a8940c56b548fccc780d8b1
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/connect/connection-options/network-compression
Compress Network Traffic
# Compress Network Traffic ## Overview MongoDB drivers can compress the messages sent to and received from MongoDB Server. This reduces the amount of data transferred for each operation. Compression can improve performance over constrained networks and lower the data transfer costs associated with running MongoDB Atl...
[ -0.0322708860039711, 0.007038992363959551, 0.008854091167449951, 0.018944989889860153, -0.0014131111092865467, -0.005614725407212973, -0.02201809361577034, 0.06937761604785919, -0.03402484580874443, -0.005404406227171421, -0.050311412662267685, -0.021094562485814095, -0.015330326743423939, ...
6a8940c56b548fccc780d8e0-0
6a8940c56b548fccc780d8e0
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/mongodb-search
Run MongoDB Search Queries
# Run MongoDB Search Queries ## Overview In this guide, you can learn how to use the Scala driver to run MongoDB Search queries on a collection. MongoDB Search enables you to perform full-text searches on your collections. MongoDB Search indexes specify the behavior of the search and the fields to index. To learn ho...
[ 0.015497228130698204, 0.003386909607797861, 0.038639288395643234, 0.044935040175914764, 0.00914693158119917, -0.008417795412242413, -0.0014472771435976028, 0.07005925476551056, -0.009638253599405289, -0.04102960601449013, -0.06301861256361008, 0.006824951618909836, -0.039235711097717285, -...
6a8940c56b548fccc780d8e0-1
6a8940c56b548fccc780d8e0
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/mongodb-search
Run MongoDB Search Queries
## Use Search Operators the MongoDB Search and MongoDB Vector Search Indexes guide ```scala val searchStage = Aggregates.search( SearchOperator.compound() .must( Iterable( SearchOperator.in(fieldPath("genres"), List("Comedy")), SearchOperator.phrase(fieldPath("fullplot"), "new york"), ...
[ 0.017374642193317413, 0.033640794456005096, 0.02363136224448681, 0.024779589846730232, 0.006681922357529402, -0.002987266518175602, -0.005974419880658388, 0.0546281524002552, 0.01619812473654747, -0.02485264092683792, -0.05228770151734352, 0.005581551697105169, -0.028105787932872772, -0.00...
6a8940c56b548fccc780d8d1-0
6a8940c56b548fccc780d8d1
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/crud/update
Update Documents
# Update Documents ## Overview In this guide, you can learn how to use the Scala driver to update documents in a MongoDB collection by using the `updateOne()` and `updateMany()` methods. ### Sample Data The examples in this guide use the `restaurants` collection in the `sample_restaurants` database from the Atlas s...
[ -0.018852224573493004, -0.0018041747389361262, 0.039267122745513916, 0.03616318479180336, 0.00018182651547249407, -0.020136108621954918, -0.03769736737012863, 0.04498765617609024, 0.010329995304346085, -0.03289753571152687, -0.022236991673707962, -0.010905781760811806, -0.019576411694288254,...
6a8940c56b548fccc780d8d1-1
6a8940c56b548fccc780d8d1
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/crud/update
Update Documents
### Return Value The `updateOne()` and `updateMany()` methods each return an `UpdateResult` object. You can use the following methods to access information from an `UpdateResult` instance: <table> <tr> <th id="Method"> Method </th> <th id="Description"> Description </th> </tr> <tr> <td headers="Method"> `getMatched...
[ -0.017501631751656532, -0.008454610593616962, 0.016522526741027832, 0.058106567710638046, 0.01549801230430603, 0.0038276007398962975, -0.02564743161201477, 0.02071949653327465, 0.020625120028853416, -0.024216094985604286, -0.003790767164900899, 0.007772758137434721, -0.04494224116206169, -...
6a8940c56b548fccc780d8be-0
6a8940c56b548fccc780d8be
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/crud/query/count
Count Documents
# Count Documents ## Overview In this guide, you can learn how to use the Scala driver to retrieve an accurate and estimated count of the number of documents in a collection. The following methods count documents in a collection: - `countDocuments()`: Returns the exact number of documents that match a query filter o...
[ -0.040013182908296585, 0.007114088162779808, 0.026521779596805573, 0.025455281138420105, -0.007545215077698231, 0.012513244524598122, 0.002749873325228691, 0.03977404534816742, 0.02951742708683014, -0.009211230091750622, 0.01282897312194109, -0.01761690154671669, -0.011620592325925827, -0....
6a8940c56b548fccc780d8ad-0
6a8940c56b548fccc780d8ad
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/connect/connection-options
Specify Connection Options
# Specify Connection Options ## Overview This page describes the MongoDB connection and authentication options available in the Scala driver and explains how to specify them for your MongoDB connection. ### Set Options in the Connection URI If you pass a connection URI to the `MongoClient()` constructor, you can in...
[ -0.033305663615465164, 0.01635112799704075, 0.035581428557634354, 0.034282900393009186, 0.0005400861264206469, -0.03547712787985802, -0.016231197863817215, 0.02720479853451252, -0.006811941508203745, -0.03129871189594269, -0.026597974821925163, 0.0039100125432014465, 0.004663131665438414, ...
6a8940c56b548fccc780d8ad-1
6a8940c56b548fccc780d8ad
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/connect/connection-options
Specify Connection Options
### authMechanismProperties Options specific to the authentication mechanism. Not required for all authentication mechanisms. *Data Type:* `string` *Example:* ```scala val uri = "mongodb://localhost:27017/?authMechanismProperties=AWS_SESSION_TOKEN:12435" val mongoClient = MongoClient(uri) ``` ### authSource The d...
[ -0.01958441734313965, 0.02445468120276928, -0.0014274874702095985, 0.030748751014471054, -0.016786634922027588, -0.06509160995483398, -0.040067318826913834, 0.026903580874204636, -0.010864284820854664, -0.013295086100697517, -0.045740023255348206, 0.0011385746765881777, -0.024306651204824448...
6a8940c56b548fccc780d8ad-2
6a8940c56b548fccc780d8ad
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/connect/connection-options
Specify Connection Options
### srvAllowedHostsSuffix The domain suffix that the driver uses to validate the host names returned by the SRV record lookup, instead of the domain inferred from the SRV host name. If the value doesn't begin with a period (`.`), the driver adds one. The driver uses this setting only with the SRV connection protocol. ...
[ -0.0004073847958352417, 0.026021581143140793, 0.00944218598306179, 0.03776920586824417, -0.014483937062323093, -0.06700484454631805, -0.036317918449640274, 0.026180267333984375, -0.01429112907499075, -0.007909325882792473, 0.007428252138197422, 0.011557360179722309, -0.010613909922540188, ...
68a95c355e79d242619e0ab2-0
68a95c355e79d242619e0ab2
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current
MongoDB Scala Driver
# MongoDB Scala Driver ## Introduction Welcome to the documentation site for the MongoDB Scala Driver, the official MongoDB driver for Scala applications. ## Get Started Learn how to install the driver, establish a connection to MongoDB, and begin working with data in the Get Started with the Scala Driver tutorial....
[ -0.04560934379696846, 0.0283814687281847, 0.03370537981390953, 0.02641346864402294, 0.013305597938597202, -0.008388150483369827, 0.014289635233581066, 0.0714915469288826, -0.038417231291532516, -0.03396192938089371, -0.025387976318597794, -0.001665580435656011, -0.033230993896722794, -0.04...
6a8940c56b548fccc780d8c6-0
6a8940c56b548fccc780d8c6
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/crud/query/project
Specify Fields To Return
# Specify Fields To Return ## Overview In this guide, you can learn how to use the Scala driver to specify which fields to return from a read operation by using a **projection**. A projection is a document that specifies which fields MongoDB returns from a query. ### Sample Data The examples in this guide use the `...
[ 0.0004804641648661345, -0.014140012674033642, 0.04689238965511322, -0.003246275708079338, -0.0001649599871598184, -0.05090994015336037, -0.03444863483309746, 0.046898290514945984, 0.014280382543802261, -0.0517316572368145, 0.017938317731022835, 0.03154781833291054, -0.03410644084215164, -0...
68a95c355e79d242619e0a6f-0
68a95c355e79d242619e0a6f
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/connect/mongoclient
Create a MongoClient
# Create a MongoClient ## Overview To connect to a MongoDB deployment, you need two things: - A **connection URI**, also known as a *connection string*, which tells the Scala driver which MongoDB deployment to connect to. - A **MongoClient** object, which creates the connection to and allows you to perform operatio...
[ -0.03497592359781265, 0.014201651327311993, 0.034932855516672134, 0.033546511083841324, 0.005951990839093924, -0.04741869494318962, -0.02060830220580101, 0.05834786221385002, -0.009155304171144962, -0.017036721110343933, -0.016267264261841774, -0.005701038986444473, -0.029090141877532005, ...
68a95c355e79d242619e0a9f-0
68a95c355e79d242619e0a9f
scala
Scala Driver
https://mongodb.com/docs/languages/scala/scala-driver/current/security/encrypt
In-Use Encryption
Version 8.2.0 of `mongocryptd` might not run on Windows. This bug affects In-Use Encryption with the driver if you specify the `--logpath NUL` argument when starting `mongocryptd`. To learn more about this issue and how to resolve it, see Known Issues in the MongoDB 8.2 Release Notes. The Scala driver uses the mongod...
[ -0.00881250575184822, 0.02081725187599659, -0.01974770985543728, 0.01868162862956524, -0.010390855371952057, -0.023224586620926857, 0.003311324864625931, 0.09043224900960922, 0.0004146732680965215, -0.050126999616622925, -0.03811289370059967, -0.011118718422949314, -0.017234215512871742, -...
6a29037dcf3722a2e3ce8b83-0
6a29037dcf3722a2e3ce8b83
search
Atlas Search
https://mongodb.com/docs/search/query/accuracy
Improve Accuracy
# Improve Accuracy ## How do I improve the accuracy of my search results? To improve the accuracy of your search results, you can use MongoDB Search support for the following features. ### Customize the Score MongoDB Search assigns a score to every document in the result set based on relevance and returns the resul...
[ -0.001787747722119093, -0.018060628324747086, -0.012120484374463558, 0.0342010073363781, 0.03912768140435219, 0.013214600272476673, -0.03192903846502304, 0.04588939622044563, -0.02411773055791855, -0.014278672635555267, -0.037751030176877975, 0.03239252418279648, -0.01983478106558323, -0.0...
6a927b9e4f25feb7b9028f40-0
6a927b9e4f25feb7b9028f40
search
Atlas Search
https://mongodb.com/docs/search/indexes/field-types/date-facet-type
How to Index Date Fields For Faceted Search
# How to Index Date Fields For Faceted Search dateDateFacet`dateFacet`Field Propertiessample_mflix.moviesdateYou can use the MongoDB Search `dateFacet` type for indexing date values for faceting. MongoDB Search only supports facet operator queries against fields indexed as the `dateFacet` type. To perform a normal se...
[ 0.0005435781204141676, -0.015434663742780685, 0.028306029736995697, 0.04097570478916168, 0.03953160345554352, -0.054484523832798004, -0.030680987983942032, 0.05032426491379738, -0.06065227836370468, -0.0016018456080928445, -0.06569192558526993, 0.016505230218172073, 0.007739167660474777, -...
6a29037dcf3722a2e3ce8bc1-0
6a29037dcf3722a2e3ce8bc1
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/text
`text` (MongoDB Search Operator)
# `text` (MongoDB Search Operator) ## Definition The `text` operator performs a full-text search using the analyzer that you specify in the index configuration. If you omit an analyzer, the `text` operator uses the default standard analyzer. You can use the `text` operator to search for exact matches to single-word ...
[ 0.013647531159222126, 0.013563000597059727, -0.010971496812999249, 0.031056834384799004, 0.025098538026213646, -0.004345404915511608, -0.01590820588171482, 0.026355044916272163, -0.003994455095380545, -0.016735827550292015, -0.08100379258394241, -0.02651563100516796, -0.03832267224788666, ...
6a29037dcf3722a2e3ce8bc1-1
6a29037dcf3722a2e3ce8bc1
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/text
`text` (MongoDB Search Operator)
### Basic Example The following MongoDB Search query uses the `text` operator to search the `title` field in the `movies` collection for the term `surfer`. It includes a `$project` stage to: - Exclude all fields except `title` - Add a field named `score` ```json db.movies.aggregate([ { $search: { "text"...
[ 0.040138762444257736, -0.025714632123708725, 0.007457873784005642, 0.0417373925447464, 0.01367245614528656, -0.007158623542636633, -0.023869434371590614, 0.04976537078619003, -0.019524293020367622, -0.04980812966823578, -0.052920278161764145, 0.004457275848835707, -0.04911801964044571, -0....
6a29037dcf3722a2e3ce8bc1-2
6a29037dcf3722a2e3ce8bc1
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/text
`text` (MongoDB Search Operator)
### Fuzzy Examples The following queries use the `text` operator to search the `title` field in the `movies` collection for terms that are within one character variation of each term in the `query` phrase `naw yark`. MongoDB Search returns different results depending on whether you use the default `fuzzy` options or d...
[ 0.05920582264661789, -0.007112577557563782, -0.010490106418728828, 0.02931302972137928, 0.033617909997701645, -0.01656021922826767, -0.031409021466970444, 0.016581213101744652, -0.012292947620153427, -0.010481832548975945, -0.07037056237459183, -0.0004639857797883451, -0.02162320539355278, ...
6a29037dcf3722a2e3ce8bc1-3
6a29037dcf3722a2e3ce8bc1
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/text
`text` (MongoDB Search Operator)
### Synonyms Examples The following examples use the `text` operator to search the `plot` field in the `sample_mflix.movies` namespace. MongoDB Search returns results based on the type of mapping in the synonym source collection, `synonymous_terms`, specified in the synonym mapping definition of the index for the `sam...
[ 0.053014419972896576, -0.012701490893959999, 0.003001849865540862, 0.025099284946918488, 0.030150650069117546, -0.01736370287835598, -0.023359613493084908, 0.035747576504945755, -0.005500238388776779, -0.014477064833045006, -0.04809946194291115, 0.022798150777816772, -0.019031915813684464, ...
6a29037dcf3722a2e3ce8bc1-4
6a29037dcf3722a2e3ce8bc1
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/text
`text` (MongoDB Search Operator)
```json [ { plot: 'A young driver, Speed Racer, aspires to be champion of the racing world with the help of his family and his high-tech Mach 5 automobile.', title: 'Speed Racer', score: 17.354578018188477 }, { plot: 'A gorgeous young automobile fanatic--and front to the hottest unsigned band on t...
[ 0.05242278054356575, -0.0069550215266644955, 0.003764098510146141, 0.04365355521440506, 0.010459581390023232, 0.006423706654459238, -0.011301139369606972, 0.004304051399230957, 0.02355538122355938, -0.004106974229216576, -0.002847854746505618, 0.02209247089922428, -0.04309556633234024, -0....
6a29037dcf3722a2e3ce8bbb-0
6a29037dcf3722a2e3ce8bbb
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/regex
`regex` (MongoDB Search Operator)
# `regex` (MongoDB Search Operator) ## Definition `regex` `regex` interprets the `query` field as a regular expression. `regex` is a term-level operator, meaning that the `query` field isn't analyzed. - Analyzers. - Analyzed field example. The regular expression language available to the `regex` operator is a limi...
[ 0.022866778075695038, 0.020990144461393356, -0.012667250819504261, 0.0024552529212087393, 0.027902351692318916, -0.022801240906119347, -0.02864912897348404, 0.005976113956421614, -0.0007157459040172398, -0.007682554889470339, -0.050498511642217636, 0.0024757618084549904, -0.02862472273409366...
6a29037dcf3722a2e3ce8bbb-1
6a29037dcf3722a2e3ce8bbb
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/regex
`regex` (MongoDB Search Operator)
### Term Position The following example uses the regular expression `.*` to find movie titles that contain the term `summer` anywhere in the `title` and returns the number of movies that match the criteria in each genre. ```javascript db.movies.aggregate([ { "$searchMeta": { "facet": { "operator":...
[ 0.03395279496908188, -0.040573276579380035, 0.003642571624368429, 0.012967620976269245, 0.012455383315682411, -0.010116145014762878, -0.005361292976886034, 0.04083235561847687, -0.005984924733638763, -0.03063502535223961, -0.03931373357772827, 0.01340822596102953, -0.028390880674123764, -0...
6a29037dcf3722a2e3ce8ae0-0
6a29037dcf3722a2e3ce8ae0
search
Atlas Search
https://mongodb.com/docs/search/about/design-patterns
Design Search for Your Data Model
# Design Search for Your Data Model MongoDB Search provides several methods to help you optimize queries for different data models. Use the following tutorials to learn common design patterns so you can effectively query your data with MongoDB Search. MongoDB Search`$search`These tutorials ## Prerequisites MongoDB ...
[ -0.00704590417444706, -0.02661166340112686, 0.02785254642367363, 0.027078019455075264, 0.037684034556150436, -0.030320435762405396, -0.009143803268671036, 0.052993904799222946, -0.023535598069429398, -0.014315509237349033, -0.06906810402870178, 0.048471126705408096, -0.03829551488161087, 0...
6a29037dcf3722a2e3ce8ae9-0
6a29037dcf3722a2e3ce8ae9
search
Atlas Search
https://mongodb.com/docs/search/deployment/multi-tenant-architecture
Build a Multi-Tenant Architecture for MongoDB Search
# Build a Multi-Tenant Architecture for MongoDB Search You can implement multi-tenancy with MongoDB Search so that a single instance of an application serves multiple tenants. This page describes design recommendations that apply specifically to MongoDB Search for structuring data and MongoDB Search indexes to scale s...
[ -0.0006881285225972533, -0.0006982812192291021, 0.022948438301682472, -0.007307071704417467, 0.016095323488116264, -0.043204158544540405, -0.00933521892875433, 0.03497063368558884, -0.0496487133204937, 0.02648352086544037, -0.06402989476919174, 0.03753631189465523, -0.03135093301534653, -0...
6a29037dcf3722a2e3ce8b1a-0
6a29037dcf3722a2e3ce8b1a
search
Atlas Search
https://mongodb.com/docs/search/deployment/deployment-options
MongoDB Search Deployment Options
# MongoDB Search Deployment Options ## Overview The following sections describe deployment options for MongoDB Search on Atlas. You can structure your cluster with different deployment types, cloud providers, and cluster tiers to meet the needs of a pre-production or production environment. Use these recommendations...
[ 0.011065340600907803, 0.016177091747522354, -0.004083942621946335, 0.0034410504158586264, 0.029409360140562057, -0.006140087731182575, 0.01645663008093834, 0.061390385031700134, -0.0013192191254347563, -0.003438323037698865, -0.06742411851882935, 0.04595083370804787, -0.028802970424294472, ...
6a29037dcf3722a2e3ce8b1a-1
6a29037dcf3722a2e3ce8b1a
search
Atlas Search
https://mongodb.com/docs/search/deployment/deployment-options
MongoDB Search Deployment Options
### Considerations Since both the `mongod` and `mongot` processes run on the same node, `mongot` might become unavailable under certain circumstances. The following table describes potential causes: <table> <tr> <th id="Cause"> Cause </th> <th id="Description"> Description </th> </tr> <tr> <td headers="Cause"> clus...
[ -0.013001659885048866, 0.014241868630051613, -0.007882693782448769, 0.019988322630524635, 0.021416757255792618, 0.010387897491455078, -0.009842433966696262, 0.061078768223524094, -0.031982921063899994, -0.018729833886027336, -0.05800595507025719, 0.040280621498823166, -0.014060717076063156, ...
6a29037dcf3722a2e3ce8b1a-2
6a29037dcf3722a2e3ce8b1a
search
Atlas Search
https://mongodb.com/docs/search/deployment/deployment-options
MongoDB Search Deployment Options
### Tips for Sizing and Scaling Search Nodes To determine the memory requirements for Search Nodes, use the following Atlas metrics: - Size of the Search Index - Total RAM on the Search Node Consider an application that has a 10GB Search Index and 4GB total RAM on the Search Node. In this case, if 1GB of RAM is use...
[ -0.004843610804527998, 0.004036127123981714, 0.01532155554741621, -0.020013341680169106, 0.03826318681240082, -0.0018754078773781657, -0.0014670091914013028, 0.09394028782844543, -0.05400419607758522, 0.02349291741847992, -0.03578764572739601, 0.02955790050327778, -0.018579261377453804, -0...
6a29037dcf3722a2e3ce8bd7-0
6a29037dcf3722a2e3ce8bd7
search
Atlas Search
https://mongodb.com/docs/search/query/query-ref
Query Reference
# Query Reference ## Pipeline Stages MongoDB Search queries take the form of an aggregation pipeline stage. MongoDB Search provides `$search` and `$searchMeta` stages, both of which must be the first stage in any query pipeline, including the `$lookup` and `$unionWith` sub-pipelines. These stages can be used in conju...
[ -0.0007011416601017118, 0.018176820129156113, 0.003454888239502907, 0.059449613094329834, 0.014141575433313847, -0.01875920780003071, -0.02237793616950512, 0.05296549201011658, -0.003690313082188368, -0.016438281163573265, -0.05795179679989815, 0.0152035653591156, -0.026614541187882423, 0....
6a29037dcf3722a2e3ce8be0-0
6a29037dcf3722a2e3ce8be0
search
Atlas Search
https://mongodb.com/docs/search/query/score/overview
Score the Documents in the Results
# Score the Documents in the Results Every document returned by a MongoDB Search or MongoDB Vector Search query is assigned a score based on relevance, and the documents included in a result set are returned in order from highest score to lowest. ## Usage To include the score of each document in your search results,...
[ 0.016271501779556274, -0.0016162456013262272, -0.009042967110872269, 0.023393545299768448, 0.044254425913095474, -0.01736774854362011, -0.05491059273481369, 0.03140587359666824, -0.008394192904233932, -0.015775583684444427, -0.04836353287100792, 0.027686672285199165, -0.042392704635858536, ...
6a29037dcf3722a2e3ce8ba9-0
6a29037dcf3722a2e3ce8ba9
search
Atlas Search
https://mongodb.com/docs/search/query/operators-collectors/hasAncestor
`hasAncestor` Operator
# `hasAncestor` Operator ## Definition `hasAncestor` The `hasAncestor` operator queries an `embeddedDocuments` type field that you specify in the `ancestorPath`. The `ancestorPath` is a parent of the field that you specify in the `returnScope`. The `returnScope` specifies the nested field, including the level of nest...
[ 0.0026067967992275953, -0.014558346942067146, 0.04571669176220894, 0.04079678654670715, 0.013173435814678669, -0.017623798921704292, -0.03410444036126137, -0.014095941558480263, 0.0011738570174202323, 0.008456910029053688, -0.02497200109064579, 0.00526548083871603, -0.022473638877272606, 0...
6a869dda8824e6129431dfa4-0
6a869dda8824e6129431dfa4
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/connection/verify-connection
Verify Your mongot Connection
# Verify Your mongot Connection Use the tutorial on this page to verify that your `mongot` deployment is active and connected to your MongoDB Community deployment. ## Before You Begin Install MongoDB Community and MongoDB Search. For installation tutorials, see Install MongoDB Community Edition and Procedure. ## St...
[ -0.006241806782782078, 0.01810593716800213, 0.039881814271211624, 0.029270609840750694, 0.05744973570108414, -0.03429541736841202, -0.014155983924865723, 0.06576118618249893, -0.029532160609960556, -0.004552406724542379, -0.019723886623978615, 0.022291794419288635, -0.04071539640426636, -0...
6a869dda8824e6129431dfb7-0
6a869dda8824e6129431dfb7
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/monitoring/tool-integrations
Monitoring Tool Integrations
# Monitoring Tool Integrations This page describes how to integrate `mongot` metrics and logs with common monitoring platforms. These instructions assume that you already run one of these tools and need the `mongot`-specific configuration. This page does not teach Prometheus, Grafana, or another platform from scratch....
[ 0.00864731427282095, 0.02751028724014759, -0.010419794358313084, 0.0426027849316597, 0.060177817940711975, -0.03552982583642006, -0.028428243473172188, 0.03955092281103134, -0.058842506259679794, -0.00810761097818613, -0.014911272563040257, 0.016741381958127022, -0.05940008535981178, -0.04...
6a869dda8824e6129431dfb7-1
6a869dda8824e6129431dfb7
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/monitoring/tool-integrations
Monitoring Tool Integrations
## Health Checks `mongot` exposes two HTTP endpoints on port `8080` by default: <table> <tr> <th id="Endpoint"> Endpoint </th> <th id="Use%20For"> Use For </th> <th id="Meaning"> Meaning </th> </tr> <tr> <td headers="Endpoint"> `/health` </td> <td headers="Use%20For"> Liveness </td> <td headers="Meaning"> `mongo...
[ 0.011728701181709766, 0.045440465211868286, 0.024882925674319267, 0.019904721528291702, 0.029363488778471947, -0.028864707797765732, 0.010666382499039173, 0.02872837707400322, -0.046479273587465286, -0.009344004094600677, -0.01087772473692894, 0.02174323797225952, -0.045153602957725525, -0...
6a869dda8824e6129431dfac-0
6a869dda8824e6129431dfac
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/configuration/automated-embedding
Configure `mongot` for MongoDB Vector Search Automated Embedding
# Configure `mongot` for MongoDB Vector Search Automated Embedding Automated Embedding is in Preview for self-managed `mongot`. The feature and corresponding documentation might change at any time during the Preview period. To learn more, see Preview Features. This tutorial describes how to configure Automated Embedd...
[ -0.005965505260974169, -0.014122194610536098, 0.04200232774019241, 0.015647519379854202, 0.022298909723758698, -0.03727557137608528, -0.006311214528977871, 0.051738910377025604, -0.04419265314936638, 0.0026697327848523855, -0.009137362241744995, -0.008026973344385624, -0.021716054528951645, ...
6a869dda8824e6129431dfac-1
6a869dda8824e6129431dfac
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/configuration/automated-embedding
Configure `mongot` for MongoDB Vector Search Automated Embedding
### Create an Automated Embedding index. After you configure `mongot` with your Voyage AI API (Application Programming Interface) keys, define a MongoDB Vector Search index that uses the `autoEmbed` field type. The index definition specifies which text field `mongot` embeds and which model it uses. It also specifies t...
[ 0.010696939192712307, 0.011851967312395573, 0.0182390958070755, 0.027703221887350082, 0.005161399953067303, -0.028083737939596176, -0.018289674073457718, 0.032516758888959885, -0.029884742572903633, 0.00905072782188654, -0.03369979187846184, -0.028938131406903267, -0.02344817854464054, -0....
6a869dda8824e6129431dfc0-0
6a869dda8824e6129431dfc0
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/installation/quick-start
MongoDB Search and MongoDB Vector Search Local Development Quickstart
# MongoDB Search and MongoDB Vector Search Local Development Quickstart You can use the `mongodb/mongodb-atlas-local` Docker image to create a single node replica set with MongoDB Search and MongoDB Vector Search. The `mongodb/mongodb-atlas-local` Docker image is a self-contained MongoDB deployment that includes `mong...
[ 0.006077658385038376, 0.0033969972282648087, 0.04630468413233757, 0.012976003810763359, 0.051168058067560196, -0.07097136229276657, -0.015395247377455235, 0.029131852090358734, -0.02649904415011406, -0.0010667964816093445, -0.0057482607662677765, 0.032725170254707336, -0.04927564039826393, ...
6a869dda8824e6129431dfc0-1
6a869dda8824e6129431dfc0
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/installation/quick-start
MongoDB Search and MongoDB Vector Search Local Development Quickstart
### (Optional). If you loaded the sample dataset, create an index. - To verify that the same data is loaded, run the following command: ```shell show dbs ``` ```shell __mdb_internal_search 56.00 KiB admin 252.00 KiB config 172.00 KiB local 193.25 Mi...
[ 0.028046542778611183, 0.0028431962709873915, 0.031316351145505905, 0.025913558900356293, 0.023126298561692238, -0.037812646478414536, -0.016208600252866745, 0.05223770812153816, -0.03864387050271034, 0.025252239778637886, -0.044805120676755905, -0.0034201990347355604, -0.018267549574375153, ...
6a869dda8824e6129431dfc0-2
6a869dda8824e6129431dfc0
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/installation/quick-start
MongoDB Search and MongoDB Vector Search Local Development Quickstart
### (Optional). If you created the index, run a query on the index. - To run a MongoDB Search query on the `movie-index` index, run the following command: This query searches for the term `courtroom lawyer` in the `plot` field of the `movies` collection using the `movie-index` index. The query uses the `fuzzy` opti...
[ 0.05001981928944588, 0.013900531455874443, 0.03403008356690407, 0.007592272013425827, 0.04224417358636856, -0.038228750228881836, -0.002413962734863162, 0.03578127175569534, -0.020081985741853714, -0.007312383968383074, -0.03759578987956047, -0.00647737318649888, -0.04886170104146004, -0.0...
6a869dda8824e6129431dfb5-0
6a869dda8824e6129431dfb5
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/release-notes
Release Notes
# Release Notes ✅## mongot v1.70.5 **Release date**: September 29, 2026 ### Bug Fixes <table> <tr> <th id="Description"> Description </th> <th id="Available%20in%20Community%20Edition"> Available in Community Edition </th> <th id="Available%20in%20Enterprise%20Advanced"> Available in Enterprise Advanced </th> </...
[ 0.002643057843670249, -0.04708322882652283, -0.026734663173556328, -0.004947550594806671, 0.007580400910228491, -0.008108856156468391, 0.00009614346345188096, 0.04544884338974953, -0.03258379176259041, -0.04243246465921402, -0.005551271140575409, -0.0033918586559593678, -0.016218576580286026...
6a869dda8824e6129431dfb5-1
6a869dda8824e6129431dfb5
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/release-notes
Release Notes
### New Features and Improvements <table> <tr> <th id="Description"> Description </th> <th id="Available%20in%20Community%20Edition"> Available in Community Edition </th> <th id="Available%20in%20Enterprise%20Advanced"> Available in Enterprise Advanced </th> </tr> <tr> <td headers="Description"> **Authentication re...
[ -0.017108606174588203, 0.011248445138335228, -0.049083977937698364, 0.011775288730859756, 0.0016738389385864139, -0.042022522538900375, -0.025913098827004433, 0.06017487496137619, -0.02612617239356041, -0.017847491428256035, -0.05694018304347992, -0.0193365216255188, -0.026848245412111282, ...
6a869dda8824e6129431dfb5-2
6a869dda8824e6129431dfb5
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/release-notes
Release Notes
</td> </tr> <tr> <td headers="Description"> **HTTP health and readiness endpoints.** The `/health` endpoint (configurable with `healthCheck.address`, default `localhost:8080`) returns `{"status":"SERVING"}` (HTTP 200) when `mongot` is ready and `{"status":"NOT_SERVING"}` (HTTP 503) otherwise, suitable for container liv...
[ 0.008205020800232887, -0.016862761229276657, -0.03359714522957802, 0.00554427457973361, 0.01745433919131756, 0.004585160408169031, -0.015354392118752003, 0.04760146141052246, -0.03093445673584938, -0.023624449968338013, -0.03759037330746651, 0.005739871878176928, -0.03816867619752884, -0.0...
6a869dda8824e6129431dfb5-3
6a869dda8824e6129431dfb5
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/release-notes
Release Notes
### Bug Fixes <table> <tr> <th id="Description"> Description </th> <th id="Available%20in%20Community%20Edition"> Available in Community Edition </th> <th id="Available%20in%20Enterprise%20Advanced"> Available in Enterprise Advanced </th> </tr> <tr> <td headers="Description"> **Search indexes protected from deletio...
[ -0.01196760218590498, 0.015686368569731712, -0.018809853121638298, 0.0180561114102602, 0.03987295925617218, -0.012073785066604614, -0.00006705664418404922, 0.04009586200118065, -0.022060824558138847, 0.00436216127127409, -0.05504731833934784, 0.012935099191963673, -0.012528232298791409, -0...
6a869dda8824e6129431dfb5-4
6a869dda8824e6129431dfb5
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/release-notes
Release Notes
</td> <td headers="Available%20in%20Community%20Edition"> ✅ </td> <td headers="Available%20in%20Enterprise%20Advanced"> ✅ </td> </tr> </table>
[ 0.01930767297744751, -0.05940205603837967, -0.050748273730278015, -0.0023261932656168938, -0.017399633303284645, -0.012222281657159328, -0.00452440558001399, 0.02903478778898716, -0.02189626730978489, -0.002003713743761182, -0.03748538717627525, 0.03324249014258385, -0.014148222282528877, ...
6a869dda8824e6129431dfbd-0
6a869dda8824e6129431dfbd
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/security/tls-encryption
Configure TLS Encryption for `mongot`
# Configure TLS Encryption for `mongot` ## Overview MongoDB Search and Vector Search use two internal communication channels between `mongot` and `mongod`: - **Sync source connections** (`mongot` → `mongod`/`mongos`): `mongot` reads data and metadata from the replica set to build and maintain search indexes. You can...
[ -0.01848945952951908, 0.016168490052223206, 0.036558378487825394, 0.02410070225596428, 0.029347514733672142, -0.02507549151778221, -0.01703028939664364, 0.036869022995233536, -0.04847859963774681, 0.00836858432739973, -0.02873428910970688, -0.0031675752252340317, -0.022048790007829666, -0....
6a869dda8824e6129431dfbe-0
6a869dda8824e6129431dfbe
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/troubleshooting
Troubleshoot Self-Managed mongot Deployments
# Troubleshoot Self-Managed mongot Deployments This page covers the most common problems in a self-managed `mongot` deployment that you run directly on Linux or in a Docker container, with step-by-step recovery procedures. Each scenario assumes you have already identified the failure mode and need a procedure to resol...
[ -0.019920513033866882, 0.020937135443091393, 0.04261031001806259, 0.06642061471939087, 0.04927623271942139, -0.009788054041564465, -0.028293386101722717, 0.03526006639003754, -0.04508792981505394, 0.008263763971626759, -0.005800651386380196, 0.01590462028980255, -0.03085269220173359, -0.02...
6a869dda8824e6129431dfbe-1
6a869dda8824e6129431dfbe
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/troubleshooting
Troubleshoot Self-Managed mongot Deployments
## OutOfMemory Error or `mongot` Killed by the OS `mongot` exits because it runs out of memory. - `mongot` exits unexpectedly and the container restart count climbs. - Logs end with `OutOfMemoryError: Java heap space`, a JVM-side out-of-memory error. - System logs from `dmesg` or `journalctl` show that the OOM kill...
[ 0.0242657158523798, 0.0018175751902163029, 0.028393587097525597, 0.05523792281746864, 0.038014005869627, -0.029792170971632004, -0.003620121395215392, 0.052724890410900116, -0.016137180849909782, 0.006121527403593063, -0.019662391394376755, 0.0018005913589149714, -0.0341748483479023, -0.01...
6a869dda8824e6129431dfbe-2
6a869dda8824e6129431dfbe
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/troubleshooting
Troubleshoot Self-Managed mongot Deployments
## Disk Pressure or Data Path Nearly Full The `mongot` data path runs low on free space. - Free space on the `mongot` data path falls toward zero. - Existing indexes accumulate replication lag once disk usage is high. - A new or rebuilt index may stay in `INITIAL_SYNC` when disk pressure is severe. - Queries conti...
[ -0.014116525650024414, 0.00585196865722537, 0.006764106918126345, 0.04221541807055473, 0.025964420288801193, 0.014955204911530018, -0.027037382125854492, 0.024839840829372406, -0.05888321250677109, -0.007490165531635284, -0.00916352216154337, -0.017117328941822052, -0.010277818888425827, -...
6a869dda8824e6129431dfbe-3
6a869dda8824e6129431dfbe
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/troubleshooting
Troubleshoot Self-Managed mongot Deployments
## Index Reaches the Lucene Document Limit A single unpartitioned search index exceeds Lucene's maximum document count and can no longer index new documents. This scenario applies to `mongot` deployments that you run directly on Linux or in a Docker container. If you deploy `mongot` with the MongoDB Controllers for K...
[ -0.004249497316777706, 0.022030174732208252, 0.013150461949408054, 0.03151915222406387, 0.011770736426115036, -0.01399317942559719, -0.0332026444375515, 0.02810773067176342, -0.06450458616018295, -0.012961277738213539, 0.003912860527634621, 0.009591924026608467, 0.001502380007877946, -0.01...
6a869dda8824e6129431dfbe-4
6a869dda8824e6129431dfbe
self-managed-search
null
https://mongodb.com/docs/search/self-managed/current/troubleshooting
Troubleshoot Self-Managed mongot Deployments
## Performance Degrades Without an Obvious Cause Performance regresses without a recent deployment change. - Query latency rose without an obvious deployment change. - CPU or memory usage climbed. 1. The workload changed, with more or larger queries. 2. A new index now consumes resources. 3. A document mapping ex...
[ 0.00644028652459383, 0.0041803279891610146, -0.004685592837631702, 0.02899232693016529, 0.04129808023571968, -0.0007015653536655009, -0.007617093622684479, 0.02857520431280136, -0.054957274347543716, 0.012715708464384079, -0.04068342596292496, 0.007713844999670982, -0.06035565584897995, -0...