Exemple #1
0
 public string GetStorageKey(INoteHeader header)
 {
     return(header.Id);
 }
Exemple #2
0
 public Term GetKeyTerm(INoteHeader note)
 {
     return(new Term(FieldNameId, note.Id));
 }
Exemple #3
0
 /// <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);
 }