Speed up textalytics search
Fix a few errors