def METHOD_NAME(self):
    query = "type:doc"
    #set query into searcher
    searcher.setQuery(query)
    #search in case and return item ids
    ids = searcher.search().getIds()
    #create new bookmark and get its id
    bookmarkId = ipedCase.getBookmarks().newBookmark("DOC files")
    #set bookmark comment
    ipedCase.getBookmarks().setBookmarkComment(bookmarkId, "Documents of DOC file format")
    #add item ids to created bookmark
    ipedCase.getBookmarks().addBookmark(ids, bookmarkId)
    #save changes synchronously
    ipedCase.getBookmarks().saveState(True)