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
0
votes
1 answer
Search Atlas autocomplite return not matched data
I have a question about Atlas search autocomplete.
My index look like
"wholeName": [
{
"type": "string"
},
{
"foldDiacritics": false,
"maxGrams": 7,
"minGrams": 3,
…

M Kravets
- 51
- 5
0
votes
2 answers
Atlas Search Index partial match
I have a test collection with these two documents:
{ _id: ObjectId("636ce11889a00c51cac27779"), sku: 'kw-lids-0009' }
{ _id: ObjectId("636ce14b89a00c51cac2777a"), sku: 'kw-fs66-gre' }
I've created a search index with this definition:
{
…

Stefano Sala
- 907
- 4
- 7
0
votes
1 answer
Query optimization while using skip and limit in Atlas search
I am trying to $skip and $limit after $search in the aggregation. Each and every time when I try to increase my skip size the execution time gets longer
Example:
Skip 10 and limit 10 then the execution time is 500ms
Skip 30 and limit 10 then the…

dgnk
- 98
- 8
0
votes
1 answer
Search including special characters in MongoDB Atlas
I faced with the issue when I try to search for several words including a special character (section sign "§").
Example: AB § 32.
I want all words "AB", "32" and symbol "§" to be included in found documents.
In some cases document can be found, in…

Yelena
- 1
- 1
0
votes
0 answers
I am getting some issue while inserting data to mongodb atlas using node js. Can someone please help me in resolving this?
After connecting with mongodb atlas, I am getting some issue while inserting data in mongodb atlas. Here is my node code where i insert routing code of insertion.
I am getting this error
error
app.js
app.js
And following is the code where i inserted…

Yatin Nagpal
- 22
- 5
0
votes
0 answers
Issue Regarding Query in MongoDB Atlas
I am problem creating a query applying condition inside the $search stage in the aggregation pipeline. I had also tried all the operators of the $search stage but it doesn't work.

Yatin Nagpal
- 22
- 5
0
votes
2 answers
How to search for text in a MongoDB collection based on data stored in another collection?
Say we have 2 collections in a Mongo Atlas database.
Users
Inventory
Users has name and userId
Inventory has inventoryId, userId
I want to search for all the inventory items by name of the user. There can be multiple entries in the user table with…

Souvik Das
- 36
- 5
0
votes
0 answers
Search for empty arrays in mongodb atlas
I needed some help with the atlas search aggregation query.
I want to use $search syntax while doing the atlas search :
I have one collection; inside which I have one array field of ObjectIds like so :
arrayFieldOfObjectIds :…

Pawan Saxena
- 521
- 1
- 4
- 14
0
votes
3 answers
Check for missing field or null value in mongoDB atlas
I am using mongodb atlas for full text search.
My sample collection looks like this :
{
"_id": "62fdfd7518da050007f035c5",
"expiryDate": "2022-08-18T23:59:59+05:30",
"arrayField" : ['abc', 'def', 'ghi', 'jkl']
},
{
"_id":…

Pawan Saxena
- 521
- 1
- 4
- 14
0
votes
0 answers
Why does aggregate sort by _id and how to avoid it?
I'm retrieving documents from an array of _ids. However, the returned results are alphabetically sorted by _ids and I don't know why. How can I avoid this and maintain the order the _ids had in the input array?
Somewhere in this function, the wrong…

Florian Walther
- 6,237
- 5
- 46
- 104
0
votes
1 answer
Will atlas search indices from source instance work on atlas data federation instance?
We are using atlas data federation and want to query data from it. There is no index option on data federation ui so I was wondering if indices created on source cluster will have positive impact on data federation instance resulting in faster query…

Muqadar Ali
- 87
- 11
0
votes
1 answer
Exact matches with wildcard search + keyword analyzer
I use a wildcard query on fields indexed with a keyword analyzer. I want to find the following document
{
title: "JavaScript beginner course",
url: "https://youtube.com/xyz"
}
with these queries: *beginner course* and *youtube* (* are…

Florian Walther
- 6,237
- 5
- 46
- 104
0
votes
0 answers
How to assign custom score in Atlas Search?
So, I am working on implementing autocomplete feature on MongoDB atlas search, and I have a field in my document which has the score of the particular search-keyword in the document.
Like, This is one of the field
Primary_Search …

ツJediRebellion
- 17
- 5
0
votes
1 answer
Do I need to add other index keys to an Atlas Search Index?
I want to use MongoDB Atlas Search. I have the following query:
const reservationIDs = [...];
const channels = [...];
const keyword = "some text";
const indexName = "search";
const query = {
_id: {$in: reservationIDs},
source: {$in:…

Dev01
- 13,292
- 19
- 70
- 124
0
votes
1 answer
MongoDB atlas search is not as efficient as expected
I have the problem that my search is not as efficient as expected. I've already checked out several options to improve the search, but unfortunately that didn't work. (For example, using other index and search Analyzer, wildcard search instead of…

Alessandro Rhomberg
- 127
- 3
- 11