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
MongoDB Atlas Search Definition JSON - String arrays
I have an object like this in a collection in my MongoDB Atlas:
{
"outer" : {
"tags" : [
"astring",
"another string",
...
],
...
}
...
}
Now I wish to make an index on the array outer.tags among other…

Divyansh Goenka
- 1
- 1
0
votes
2 answers
Lucene $search pipeline in mongodb atlas
I cant make the following work in Atlas using $search pipeline.
Problem
If we search below with query = "John" only document with "John" are returned
if we search with "John Doe" then we have way too much document : returned document are the one…

cedric.walter
- 731
- 6
- 7
0
votes
2 answers
Filter MongoDB autocomplete
When building an autocomplete aggregation pipeline using MongoDb Atlas search indexes. How do I limit the autocomplete to only search through specific ID's?
I'm building search functionality where a user can search for people and the application…

Erdna
- 127
- 2
- 7
0
votes
0 answers
Mongodb Atlas Search Autocomplete is slow on sort with large data set
I have used an atlas search for finding Hashtags. I would like to sorting on t_status and count fields. t_status field does not exist in most of documents but it has exist in some documents.
Hashtags save in _id field.
search autocomplete index :
{
…

Jitendra Patel
- 121
- 1
- 5
0
votes
1 answer
Unknown index plugin 'autocomplete' MongoDB
I am getting this error while creating index for search query. I wanted to make autocmplete for my search engine but mongo db keeps on throwing this error.
Here is my code:
const tracks = db.collection("tracks")
await tracks.createIndex({
…

Billjesh Baidya
- 189
- 1
- 12
0
votes
0 answers
use geonear with fuzzy search text mongodb
I have the following query
db.hotels.aggregate([
{
$search: {
index:'txtIdx', // this is the index name
text: {
query:"sun",
…
user14641790
0
votes
1 answer
Query an array with Atlas $search
As inputs, I get a search query (should operator) and a filter (about whether or not a post is liked, must/mustNot operators).
I start with the following as a foundation to my aggregation pipeline:
{ $search: { compound: {} } }
Then, if a query is…

deb
- 6,671
- 2
- 11
- 27
0
votes
1 answer
Object spread inside of new array
I have a Node.js program that is using Mongo Atlas search indexes and is utilizing the Aggregate function inside of the MongoDB driver. In order to search, the user would pass the search queries inside of the query parameters of the URL. That being…

Brandon Miller
- 1,534
- 1
- 11
- 16
0
votes
1 answer
Atlas Search Autocomplete on Subdocument Array
I am having some trouble with the autocomplete atlas search data type when trying to define an index for an array of subdocuments in my document.
My data structure for the documents in my collection looks like this:
{
"data": {
"equipment":…

jakobn
- 16
- 1
- 7
0
votes
1 answer
Fidning a complete term among different fields for Atlas Search
I am trying to use Atlas search to search for a name. In my dataset name is divided between FirstName and LastName, and that causes the problem for me.
I have tried the following stage in my aggregation:
{
"$search" : {
"phrase" : {
…

Øyvind Bråthen
- 59,338
- 27
- 124
- 151
0
votes
1 answer
Mongodb Atlas Search with directive insensitive
I am using MongoDB Atlas Search to perform a search in Collection, for this I created a Atlas Search Index:
{
"mappings": {
"dynamic": false,
"fields": {
"caption": {
"type": "string"
}
}
}
}
Here is my…

Kishor Patidar
- 623
- 12
- 23
0
votes
0 answers
How to use a Atlas Search highlight in Parse Server?
I am using parse server with MongoDB Atlas. I have an v3 index (diacritics-insensitive) implemented and it is working fine.
In Next I want to highlight text in search result. Here is a mondodb article that I want to…

Kishor Patidar
- 623
- 12
- 23
0
votes
1 answer
MongoDB Atlas: How to convert a replica set member to become Primary
This document, https://docs.mongodb.com/manual/tutorial/force-member-to-be-primary says that one can force a replica set member to become primary by giving it a higher members[n].priority value than any other member in the set. It is for MongoDB. We…

Melissa Jenner
- 781
- 1
- 8
- 31
0
votes
0 answers
Getting distinct documents in aggregate pipeline in MongoDB
I'm trying to do union between an Atlas text search and a match in Mongodb, an then get the distinct results from those before adding additional stages. I'm close, but I'm missing a step here I think. There is where I'm at…

Øyvind Bråthen
- 59,338
- 27
- 124
- 151
0
votes
1 answer
Can the Atlas search filter in MongoDB cloud be used to query between dates?
All the examples I read online seem to refer to using the compass or the command line, not MongoDB cloud. I try emulate the same query code in the search filter but not having any luck.
Search function
For example with the sample…

Botti
- 1
- 1