Revert "Revert "search api for event""

This reverts commit b160cd8ce057cd92f5e3fc10d5175a8308ffe16f.