C# Класс ScrewTurn.Wiki.SearchTools

Implements tools for searching through the wiki.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Search() публичный статический Метод

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.
Результат SearchResultCollection

SearchSimilarPages() публичный статический Метод

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.
Результат System.PageInfo[]