i have created search index in MongoDB atlas . now i want to fetch that index data using API. how can i do it.
Skip to main content
Hi @Deepak_Kumar20 - Welcome to the community.
Try the Return One Atlas Search Index API out and see if it’s what you’re after. Example response from the request below:
{
"collectionName": "string",
"database": "string",
"indexID": "32b6e34b3d91647abb20e7b8",
"name": "string",
"status": "IN_PROGRESS",
"type": "search",
"analyzer": "lucene.standard",
"analyzers": [
{
"charFilters": [
{
"ignoredTags": [
"string"
],
"type": "htmlStrip"
}
],
"name": "string",
"tokenFilters": [
{
"originalTokens": "omit",
"type": "asciiFolding"
}
],
"tokenizer": {
"maxGram": 0,
"minGram": 0,
"type": "edgeGram"
}
}
],
"mappings": {
"dynamic": false,
"fields": {
"property1": {},
"property2": {}
}
},
"searchAnalyzer": "lucene.standard",
"synonyms": [
{
"analyzer": "lucene.standard",
"name": "string",
"source": {
"collection": "string"
}
}
]
}
Regards,
Jason
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Different ObjectId sort order in search and sort stages | 1 | 695 | May 2024 |
Database Error: MongoServerError: $search is not allowed with ‘apiStrict: true’ in API Version 1 | 1 | 945 | Jun 2024 |
SearchDefinition Filter for null value | 1 | 301 | Aug 2024 |
Search data in upload pdf | 2 | 58 | Sep 2024 |
case insensitive in operator in Atlas search | 1 | 38 | Oct 2024 |