Apply index-filters on scores in get_nearest_examples and get_nearest…
Updated search.py to resolve the issue mentioned in https://github.com/huggingface/datasets/issues/3961.

Applied index-filters on scores in get_nearest_examples and get_nearest_examples_batch methods of search.py.