add wildcards to distance function passed to a search method in RTree