$search pipeline to get result between range for string

For normal mongodb query we can use $gte and it wont check the type but for atlas query it only accept BSON and number.

{name:{$gte:“Sample”}}

o/p :- the data we get where name start with " S " and beyound (ex:name starting with s,t,u-----z)

today, for gte (without $) we require number or date types.

The way to accomplish today is to convert the string to numbers for now. Does this make sense?

No we can’t convert the string to number as it is text