Property | Type | Description | |
---|---|---|---|
buildDocument | BuildDocument | ||
catalog | Word>.Dictionary | ||
stopWords | string[] |
Method | Description | |
---|---|---|
Clear ( object state ) : void |
Completely clears the index (stop words are not affected).
|
|
InMemoryIndexBase ( ) : System |
Initializes a new instance of the InMemoryIndexBase class.
|
|
InitializeData ( |
Initializes index data by completely emptying the index catalog and storing the specified data. The method does not check the consistency of the data passed as arguments. |
|
RemoveDocument ( IDocument document, object state ) : void |
Removes a document from the index.
|
|
Search ( |
Performs a search in the index.
|
|
SetBuildDocumentDelegate ( BuildDocument buildDocument ) : void |
Sets the delegate used for converting a DumpedDocument to an instance of a class implementing IDocument, while reading index data from a permanent storage. This method must be called before invoking InitializeData. |
|
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. If the specified document was already in the index, all the old occurrences are deleted from the index. |
Method | Description | |
---|---|---|
OnIndexChange ( IDocument document, IndexChangeType change, |
Takes care of firing the IndexChanged event.
|
|
RemoveDocumentInternal ( IDocument document ) : |
Removes a document from the index and generates the dumped change data.
|
|
StoreWord ( string wordText, IDocument document, ushort firstCharIndex, ushort wordIndex, WordLocation location, |
Stores a word in the catalog. Storing a word in the index is O(n log n), where n is the number of words already in the index. |
Method | Description | |
---|---|---|
FindDocument ( string name ) : IDocument |
Finds a document with a specified name.
|
public Clear ( object state ) : void | ||
state | object | A state object that is passed to the IndexStorer SaveDate/DeleteData function. |
return | void |
public InitializeData ( |
||
documents | The documents. | |
words | The words. | |
mappings | The mappings. | |
return | void |
protected OnIndexChange ( IDocument document, IndexChangeType change, |
||
document | IDocument | The affected document. |
change | IndexChangeType | The change performed. |
changeData | The dumped change data. | |
state | object | A state object that is passed to the IndexStorer SaveDate/DeleteData function. |
return |
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. |
return | void |
protected RemoveDocumentInternal ( IDocument document ) : |
||
document | IDocument | The document to remove. |
return |
public Search ( |
||
parameters | The search parameters. | |
return | SearchResultCollection |
public SetBuildDocumentDelegate ( BuildDocument buildDocument ) : void | ||
buildDocument | BuildDocument | The delegate (cannot be |
return | void |
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 |
content | string | The content of the document. |
state | object | A state object that is passed to the IndexStorer SaveDate/DeleteData function. |
return | int |
protected StoreWord ( string wordText, IDocument document, ushort firstCharIndex, ushort wordIndex, WordLocation location, |
||
wordText | string | The word to store. |
document | IDocument | The document the word occurs in. |
firstCharIndex | ushort | The index of the first character of the word in the document the word occurs at. |
wordIndex | ushort | The index of the word in the document. |
location | WordLocation | The location of the word. |
newWord | The new word, or |
|
dumpedWord | The dumped word data, or |
|
return |