Add AbsentFromLastScan (#601) LastDownloaded (#602) search

This commit is contained in:
Mbucari 2023-05-19 11:09:57 -06:00
parent 3fdfbb9e26
commit fd510861c6
6 changed files with 181 additions and 144 deletions

View file

@ -37,6 +37,8 @@ namespace LibationSearchEngine
internal static string ToLuceneString(this float f) => ((double)f).ToLuceneString();
internal static string ToLuceneString(this DateTime dt)
=> dt.ToString("yyyyMMdd") + DECIMAL_PRECISION;
internal static string ToLuceneString(this DateTime? dt)
=> dt?.ToLuceneString() ?? "";
internal static string ToLuceneString(this double d)
=> d.ToString("0" + DECIMAL_PRECISION).PadLeft(PAD_DIGITS + DECIMAL_PRECISION.Length, '0');
}