add analysis algorithm for search
add analysis for search