cleanup text search

Signed-off-by: Sam Kleinman <samk@10gen.com>