RAZ-1919: Search: Custom field values could not be searched if many fields had the same value assigned