fixed a bug in search indexer that incorrectly indexed multiple values