Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public async IAsyncEnumerable<SitemapEntry> ReadAllAsync([EnumeratorCancellation
continue;

var url = source["url"]?.GetValue<string>();
var lastUpdatedStr = source["content_last_updated"]?.GetValue<string>();
var lastUpdatedStr = source["content_last_updated"]?.GetValue<string>()
?? source["last_updated"]?.GetValue<string>();

if (url is null || lastUpdatedStr is null)
continue;
Expand Down Expand Up @@ -131,7 +132,7 @@ internal static string BuildSearchBody(string pitId, string[]? searchAfter)
var body = new JsonObject
{
["size"] = PageSize,
["_source"] = new JsonArray("url", "content_last_updated"),
["_source"] = new JsonArray("url", "content_last_updated", "last_updated"),
["query"] = new JsonObject
{
["bool"] = new JsonObject
Expand Down
Loading