added functionality for search only effects the individual spans at this time.