add seach function, limit index posts