public string GetStorageKey(INoteHeader header) { return(header.Id); }
public Term GetKeyTerm(INoteHeader note) { return(new Term(FieldNameId, note.Id)); }
/// <summary> /// Get value of one of searchable note time properties. /// </summary> /// <param name="note"> /// Mandatory /// </param> /// <param name="searchableDocumentTime"> /// Identifies property. /// </param> /// <returns> /// Time property value. /// </returns> public static DateTime GetSeachableTime(this INoteHeader note, SearchableDocumentTime searchableDocumentTime) { return(searchableDocumentTime == SearchableDocumentTime.Creation ? note.CreateTime : note.LastUpdateTime); }