refactor search
Update search index when performing new queries