| java.lang.Object vqwiki.AbstractSearchEngine vqwiki.file.FileSearchEngine
FileSearchEngine | public class FileSearchEngine extends AbstractSearchEngine (Code) | | Very Quick Wiki - WikiWikiWeb clone
Copyright (C) 2001-2002 Gareth Cronin
This is the search engine for the default file system. There are some idiosyncracies
in order to keep compatibility with the pre-virtual-wiki implementations:
Whenever the default virtual wiki with the context "jsp" is accessed, the path is
altered so the files are put/read to/from the root of the Wiki home directory as
with earlier versions.
This program is free software; you can redistribute it and/or modify
it under the terms of the latest version of the GNU Lesser General
Public License as published by the Free Software Foundation;
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program (gpl.txt); if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
dir | protected String dir(String virtualWiki)(Code) | | find the base directory to use for a virtual wiki
Parameters: virtualWiki - the virtual wiki to find the base directory for base directory for a particular virtual wiki |
getAllTopicNames | public Collection getAllTopicNames(String virtualWiki) throws Exception(Code) | | Return a list of all topic names for one given virtual Wiki
Parameters: virtualWiki - The virtual viki, for which the topic names are requested A List of Topic Names (Collection of Strings). throws: Exception - Exception during search throws: WikiException - Virtual wiki cannot be found |
Methods inherited from vqwiki.AbstractSearchEngine | public synchronized void add(String virtualWiki, String topic, String contents) throws IOException(Code)(Java Doc) protected Document createDocument(String currentWiki, String topic) throws Exception(Code)(Java Doc) protected Collection doSearch(String virtualWiki, String text, boolean caseInsensitiveSearch, boolean doTextBeforeAndAfterParsing)(Code)(Java Doc) public Collection find(String virtualWiki, String text, boolean doTextBeforeAndAfterParsing)(Code)(Java Doc) public Collection findLinkedTo(String virtualWiki, String topicName) throws Exception(Code)(Java Doc) public Collection findMultiple(String virtualWiki, String text, boolean fuzzy)(Code)(Java Doc) abstract protected String getFilename(String currentWiki, String topic)(Code)(Java Doc) protected Directory getIndexDirectory(File indexFile, boolean create) throws IOException(Code)(Java Doc) protected Directory getIndexDirectory(String indexFilename, boolean create) throws IOException(Code)(Java Doc) public String getSearchIndexPath(String virtualWiki)(Code)(Java Doc) public void indexText(String virtualWiki, String topic, String text) throws IOException(Code)(Java Doc) protected void initSearchEngine(ServletContext ctx) throws Exception(Code)(Java Doc) protected void initSearchEngine(String iP) throws Exception(Code)(Java Doc) public synchronized void rebuild() throws Exception(Code)(Java Doc) public void refreshIndex() throws Exception(Code)(Java Doc)
|
|
|