MongoDB Atlas Search is a cloud product based on Apache Lucene which allows relevance based search for MongoDB Atlas users.
Questions tagged [mongodb-atlas-search]
131 questions
3
votes
0 answers
MongoDB Atlas Search - slow count of matched documents
I have a collection with 11M records, which contains among other properties, a "Name" property with a client name:
{
"Name" : "Teressa Bella"
}
I have created an Atlas Search index on the "Name" field with the following definition:
{
…

djed
- 141
- 10
3
votes
0 answers
MongoDB Atlas Search: autocomplete with fuzzy results in constant score
I am working with the current version of MongoDB Atlas Search (version 4.2.8) hosted cloud.mongodb.com.
My search index is defined as followed:
{
mappings: {
dynamic: false,
fields: {
name: {
type: "autocomplete"
}
…

peterschrott
- 570
- 5
- 25
2
votes
1 answer
MongoDB watch single document [scalability]
This is MongoDB's api:
db.foo.watch([{$match: {"bar.baz": "qux" }}])
Let's say that collection foo contains millions of documents. The arguments passed into watch indicate that for every single document that gets updated the system will filter the…

AlTunegenie
- 65
- 3
2
votes
1 answer
How to handle query in local MongoDB database, while I am using MongoDB Atlas Search?
I am looking at the MongoDB Atlas Search. It seems only work in the MongoDB Atlas Cloud.
For dev purposes, while I run the app in the local environment and use the local MongoDB server, how these Atlas Search query will work?
I find 2 inefficient…

Shams Nahid
- 6,239
- 8
- 28
- 39
2
votes
2 answers
Mongo db atlas search: create atlas search index on embedded document
For storing categories, I have below schema -
{
name: String,
description : String,
subCategories:[
{
name:String,
description : String
}
]
}
For searching, need to apply atlas search index on both…

Avani Khabiya
- 1,207
- 2
- 15
- 34
2
votes
1 answer
Create queryString $search pipeline, that returns result not only by word boundaries in MongoDB atlass search
My objective is to create a search pipeline in MongoDB, that returns result for multiple fields.
My index:
{
"analyzer": "lucene.standard",
"searchAnalyzer": "lucene.standard",
"mappings": {
"dynamic": false,
"fields": {
…

DauleDK
- 3,313
- 11
- 55
- 98
2
votes
1 answer
Query for sub-set of word in MongoDB Atlas full text search
My objective is to create an index + search pipeline, so I can find the following document by searching for "reprod":
{ name: "can you find this and reproduce?" }
What I have:
I'm using the default index.
My search pipeline looks like…

DauleDK
- 3,313
- 11
- 55
- 98
2
votes
2 answers
MongoDB Atlas Search by referenced document field search term
I know how to use MongoDB Atlas search to search for Orders by it's name and a given Buyer ID, along with a known/matched Supplier name
For example:
(Using Mongoose ODM)
const searchResults = await Order.aggregate([
{
$search: {
…

Kuyashii
- 360
- 1
- 4
- 21
2
votes
1 answer
How to apply a filter, before running MongoDB Atlas full text search?
According to the documentation about Atlas Search, it states:
$search must be the first stage of any pipeline it appears in.
Well if that is the case, how do you apply Mongo filters.
It seems very counter-intuitive to apply these filters on the…

DauleDK
- 3,313
- 11
- 55
- 98
2
votes
2 answers
Is there a Driver for mongodb to use Atlas search in .net core application?
I'm using MongoDB Atlas in my .net core application, using c# driver to connect the database, recently came to know about Atlas Search and I'm able to create an index for my collections, Is there a way to use $searchbeta from my application to query…

Annamalai D
- 859
- 1
- 7
- 21
1
vote
0 answers
Atlas search not matching partial search if field contains _
Given the following Atlas Search Index and example data…
Atlas Search Index
{
mappings: {
dynamic: false,
fields: {
content: {
tokenization: 'edgeGram',
type: 'autocomplete'
},
title: {
…

bflemi3
- 6,698
- 20
- 88
- 155
1
vote
0 answers
Use $search instead of $match when using $in conditions in MongoDB Atlas Search
During a recent training, I learned about the benefits of using the $searchoperator.
I would like to modify my $match query to use $search instead.
However, I couldn't find an equivalent for the $in operator.
When the fields need to match a single…

MLR
- 23
- 5
1
vote
0 answers
Atlas search synonyms don't have impact
I use Atlas Search in free tier, I have a full text index on multiple fields of a product.
Here is my full text index definition :
{
"analyzer": "lucene.french",
"searchAnalyzer": "lucene.french",
"mappings": {
"dynamic": false,
…

Toothgip
- 469
- 6
- 14
1
vote
1 answer
MongoDB Atlas Search: fuzzy multi-word search
I have these two documents:
{
"jobTitle": "Asset Manager",
"description": "Working with assets and so on"
},
{
"jobTitle": "Coffeshop Manager",
"description": "Serving assets to clients"
},
I want to find all documents in my…

F.Tepel
- 140
- 1
- 6
1
vote
0 answers
Which analyzer to use on specific strings?
I have a document in my collection with a property name like this:
name: [{Value: "steel 0.8x1000x2000mm"}]
Now I'm trying to create a search index for it, so far looks like this:
...
"name": {
"fields": {
"Value": [
…

k102
- 7,861
- 7
- 49
- 69