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.