I’m running a free cluster, M0 Sandbox. I create a search index and get the search response first time. but after that I don’t get response. what could be the causes?
Index definition:
{
"mappings": {
"dynamic": false,
"fields": {
"hotelName": {
"maxGrams": 7,
"minGrams": 3,
"type": "autocomplete"
}
}
}
}
Query (Copied from atlas search tester on web):
[
{
$search: {
index: 'hotel-search',
text: {
query: 'Hot',
path: {
'wildcard': '*'
}
}
}
}
]
And my collection:
{
"_id":{"$oid":"63e47ec031acc217f8d9b929"},
"hotelId":"H1153858",
"hotelName":"Hotel Spa Elia"
}
Can you try the following search query to see if you get any documents?:
[
{
$search: {
index: 'hotel-search',
autocomplete: {
query: 'Hot',
path: 'hotelName'
}
}
}
]
Changes made:
-
text
operator toautcomplete
operator -
path
value from{'wildcard' : '*'}
to'hotelName'
2 Likes
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.