Added filtering for range codes and added num_found property to results