C# Класс ScrewTurn.Wiki.Plugins.SqlCommon.SqlIndex

Implements a SQL-based search engine index.
Наследование: IIndex
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
stopWords string[]

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

Метод Описание
Clear ( object state ) : void

Completely clears the index (stop words are not affected).

RemoveDocument ( IDocument document, object state ) : void

Removes a document from the index.

Search ( SearchParameters parameters ) : SearchResultCollection

Performs a search in the index.

SqlIndex ( IIndexConnector connector ) : System

Initializes a new instance of the T:SqlIndex class.

StoreDocument ( IDocument document, string keywords, string content, object state ) : int

Stores a document in the index.

Indexing the content of the document is O(n), where n is the total number of words in the document.

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

Clear() публичный Метод

Completely clears the index (stop words are not affected).
public Clear ( object state ) : void
state object A state object that is passed to the IndexStorer SaveDate/DeleteData function.
Результат void

RemoveDocument() публичный Метод

Removes a document from the index.
public RemoveDocument ( IDocument document, object state ) : void
document IDocument The document to remove.
state object A state object that is passed to the IndexStorer SaveDate/DeleteData function.
Результат void

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

Performs a search in the index.
public Search ( SearchParameters parameters ) : SearchResultCollection
parameters ScrewTurn.Wiki.SearchEngine.SearchParameters The search parameters.
Результат SearchResultCollection

SqlIndex() публичный Метод

Initializes a new instance of the T:SqlIndex class.
public SqlIndex ( IIndexConnector connector ) : System
connector IIndexConnector The connection object.
Результат System

StoreDocument() публичный Метод

Stores a document in the index.
Indexing the content of the document is O(n), where n is the total number of words in the document.
public StoreDocument ( IDocument document, string keywords, string content, object state ) : int
document IDocument The document.
keywords string The document keywords, if any, an empty array or null otherwise.
content string The content of the document.
state object A state object that is passed to the IndexStorer SaveDate/DeleteData function.
Результат int

Описание свойств

stopWords защищенное свойство

The stop words to be used while indexing new content.
protected string[] stopWords
Результат string[]