Regex search with Near query in MongoRepo interface method

Hi. I am able to perform near search thru MongoRepo interface with the following method

Page<Listing> findByAddressLocationNear(Point point, Distance distance, Pageable pageable);

It works as intended. I am wondering how I can perform a simple regex search on certain fields on top of this query. I tried:

Page<Listing> findByAddressLocationNearAndNameRegexOrDescRegex(Point point, Distance distance, String regex, Pageable pageable)

Where “name” and “desc” are valid fields.

Hi Chandler, As a general rule Atlas Search offers a far more powerful search query experience than regex at this point: noting your first priority may be geo proximity this may be less relevant to you but just making sure