using System; using System.Collections.Generic; using System.Text; namespace ScrewTurn.Wiki.SearchEngine { /// /// Contains the results of an index storer operation. /// public class IndexStorerResult { private uint? documentId; private List wordIds; /// /// Initializes a new instance of the class. /// /// The ID of the document just stored, if any. /// The IDs of the words just stored, if any. public IndexStorerResult(uint? documentId, List wordIds) { this.documentId = documentId; this.wordIds = wordIds; } /// /// Gets or sets the ID of the document just stored, if any. /// public uint? DocumentID { get { return documentId; } set { documentId = value; } } /// /// Gets or sets the IDs of the words /// public List WordIDs { get { return wordIds; } set { wordIds = value; } } } /// /// Describes the ID of a word. /// public class WordId { private string text; private uint id; /// /// Initializes a new instance of the class. /// /// The word text, lowercase. /// The word ID. public WordId(string text, uint id) { this.text = text; this.id = id; } /// /// Gets the word text. /// public string Text { get { return text; } } /// /// Gets the word ID. /// public uint ID { get { return id; } } } }