structure the search data
add aggregate command script