📄 searchprovider.java
字号:
/*JSPWiki - a JSP-based WikiWiki clone.Copyright (C) 2005 Janne Jalkanen (Janne.Jalkanen@iki.fi)This program is free software; you can redistribute it and/or modifyit under the terms of the GNU Lesser General Public License as published bythe Free Software Foundation; either version 2.1 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/package com.ecyrd.jspwiki.search;import java.io.IOException;import java.util.Collection;import com.ecyrd.jspwiki.WikiPage;import com.ecyrd.jspwiki.WikiProvider;import com.ecyrd.jspwiki.providers.ProviderException;/** * Interface for the search providers that handle searching the Wiki * * @author Arent-Jan Banck for Informatica * @since 2.2.21. */public interface SearchProvider extends WikiProvider{ /** * Delete a page from the search index * @param page Page to remove from search index */ public void pageRemoved(WikiPage page); /** * Adds a WikiPage for indexing queue. This is called a queue, since * this method is expected to return pretty quickly, and indexing to * be done in a separate thread. * * @param page The WikiPage to be indexed. */ public void reindexPage(WikiPage page); /** * Search for pages matching a search query * @param query query to search for * @return collection of pages that match query * @throws ProviderException, if the search provider failed. * @throws IOException, if for some reason the query could not be executed. */ public Collection findPages(String query) throws ProviderException, IOException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -