C# Class ScrewTurn.Wiki.SearchTools

Implements tools for searching through the wiki.
显示文件 Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
Search ( string query, bool fullText, bool searchFilesAndAttachments, SearchOptions options ) : SearchResultCollection

Performs a search in the wiki.

SearchSimilarPages ( string name, string nspace ) : System.PageInfo[]

Searches for pages with name or title similar to a specified value.

Private Methods

Method Description
CombineCollections ( List collections ) : SearchResultCollection

Combines a set of T:SearchResultCollections into a single object.

DetectFileOrAttachment ( DumpedDocument doc ) : IDocument

Detects the document in a dumped instance for files and attachments.

TraverseDirectories ( InMemoryIndexBase index, IFilesStorageProviderV30 provider, string currentDir ) : void

Traverses a directory tree, indexing all files.

Method Details

Search() public static method

Performs a search in the wiki.
public static Search ( string query, bool fullText, bool searchFilesAndAttachments, SearchOptions options ) : SearchResultCollection
query string The search query.
fullText bool A value indicating whether to perform a full-text search.
searchFilesAndAttachments bool A value indicating whether to search through files and attachments.
options SearchOptions The search options.
return SearchResultCollection

SearchSimilarPages() public static method

Searches for pages with name or title similar to a specified value.
public static SearchSimilarPages ( string name, string nspace ) : System.PageInfo[]
name string The name to look for (null for the root).
nspace string The namespace to search into.
return System.PageInfo[]