extract pagination query logic out of read store impl
updated search API to support greater flexibility
search api misc renames