I am looking at this documentation. On the search index the geoloc field is indexed as geo and here is an example of the geoloc field in my collection:
"geoloc": {"type": "geo"}
{"geoloc":{"type":"Point","coordinates":[{"$numberDecimal":"-81.52274"},{"$numberDecimal":"41.07571"}]}}
When I build out my $search in the aggregation tab I do not get anything back when I search for the location provided above.
{
"index": "default",
"near": {
"origin": {
"type": "Point",
"coordinates": [-81.52274, 41.07571]
},
"pivot": 100000000,
"path": "geoloc"
}
}