Change the return type of search method from ArrayList<Document> to
ArrayList<WikiPage>