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
1
vote
0 answers
How can we create an Atlas index for the Decimal128 field in Mongo DB - Atlas search?
Do we have any alternative solution to search with the Decimal128 field in Mongo DB Atlas search?
I tried to create an Atlas index with Number but it seems they support only int32, int64 and double. Decimal 128 doesn't work with this index.
{
…

Bathri Nathan
- 1,101
- 2
- 13
- 17
1
vote
1 answer
Remote error from mongot :: caused by :: query has expanded into too many sub-queries internally: maxClauseCount is set to 1024
I'm using MongoDB's Atlas Search $search aggregation pipeline stage. I'm getting the following error:
Remote error from mongot :: caused by :: query has expanded into too many sub-queries internally: maxClauseCount is set to 1024
This seems to be…

Pranaya Tomar
- 199
- 1
- 13
1
vote
1 answer
Failing to Write Any Query using MongoDB Atlas Search Index
I get this error when I try to run any aggregation using $search in a MongoDB Atlas Search index.
Remote error from mongot :: caused by :: Error connecting to localhost:28000 (127.0.0.1:28000) :: caused by :: Connection refused

Nice-Guy
- 1,457
- 11
- 20
1
vote
1 answer
Search multiple query / paths in MongoDB Atlas Search
I'm trying to create an api which will return search results which match more than one parameter. I can query one parameter fine at the moment.
Here is an example url
http://localhost:3000/api/search?term=javascript&impact=sdg1
I want the results…

user2095430
- 83
- 1
- 8
1
vote
2 answers
Autocomplete filtered with mongodb
I would like to perform autocompletion on the name but filtered on a specific city with mongoose and nodejs.
I have a mongodb collection like this :
{
"_id" : ObjectId("6007fd9d984e2507ad452cf3"),
"name" : "John",
"city" : "A",
},
{
…

Rudy
- 39
- 6
1
vote
1 answer
Mongoose with search autocomplete index
I want an autocomplete search on a name field in my collection on MongoDB Atlas. I've configured a search index in MongoDB atlas as following:
{
"mappings": {
"dynamic": false,
"fields": {
"name": {
"foldDiacritics": false,
…

erez victor
- 31
- 5
1
vote
1 answer
Why does the first connection/request to MongoDB Atlas database taking so long?
I created a webapp using React, Nodejs and Mongodb as a database. I'm taking advantage of the free MongoDB Atlas database for now, so I created an account and a db there, then I connected it with my node/express server.
My app is working perfectly,…

basilisk
- 1,156
- 1
- 14
- 34
1
vote
1 answer
Mongodb multilingual search: Which schema is better for faster search results - nested or having language specific fields directly
We are implementing fuzzy search on product using Atlas search index and for querying, we are using Mongoose. The kind of search we want includes multilingual searching and for this we are using following schema for the product -
{
language:…

Avani Khabiya
- 1,207
- 2
- 15
- 34
1
vote
1 answer
Mongodb atlas search: how to make use of multiple analyzers for the same query string, so as to return atleast some result
So the problem statement is - I am using atlas search for searching product data and have product details in multiple languages. For which, I have used multi analyzer and defined standard and corresponding language analyzer on the same field, so as…

Avani Khabiya
- 1,207
- 2
- 15
- 34
1
vote
1 answer
Mongodb atlas search: apply multiple language analyzers
There is a collection namely - categories, which has following schema
{
name: String,
language: { $type: String, default: "de"}
translation:[
{
language: { $type: String, enum: ["en","fr"]},
name:String
…

Avani Khabiya
- 1,207
- 2
- 15
- 34
1
vote
1 answer
What query uses less resources in MongoDB?
I am getting familiarized with Lucene and MongoDB Atlas search, and I have a question about query efficiency.
Which one of those queries uses fewer resources?
If there are better queries for performing the below task, please let me know.
I want to…

alex gouveia
- 11
- 2
1
vote
1 answer
MongoDB aggregate only working with exact string
I am trying to implement a search feature to MongoDB and this is the aggregate pipeline I am using:
[
{
'$search': {
'text': {
'query': 'albus',
'path': [
'first_name',…

Shrey
- 146
- 2
- 11
1
vote
1 answer
MongoDB full text search, autocomplete on two fields
I am trying to implement MongoDB atlas search, and the objective is autocomplete on 2 fields.
I currently have this implementation:
const searchStep = {
$search: {
// Read more about compound here:
//…

DauleDK
- 3,313
- 11
- 55
- 98
1
vote
0 answers
Full text search in MongoDB collection connected to another nested collection
I want to search a string in my mongodb collection, and the search string is present in another collection that is connected as an array of objects in my current collection.
example collection
Collection…

Akash Gupta
- 11
- 1
1
vote
1 answer
Is there a way to escape accents on mongodb fulltext search
With the new Atlas Search feature is there a way to escape accents.
I did this index :
{
"analyzer": "lucene.standard",
"searchAnalyzer": "lucene.standard",
"mappings": {
"dynamic": false,
"fields": {
"_id": {
"type":…

Julien TASSIN
- 5,004
- 1
- 25
- 40