update the example to follow the newest index building protocol
add filtered query; add match_all query