C# 클래스 ScrewTurn.Wiki.Plugins.SqlCommon.SqlIndex

Implements a SQL-based search engine index.
상속: IIndex
파일 보기 프로젝트 열기: mono/ScrewTurnWiki

보호된 프로퍼티들

프로퍼티 타입 설명
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[]