Fixed duplicate results in search.
Fixed.
Merge pull request #1709 from ruimalheiro/duplicate_search_results

Fixed duplicate results in search.