Conversation
Add a cursor-paginated API endpoint that returns which documentation pages have changed since a given date, using Elasticsearch search_after for efficient deep pagination with no 10k hit limit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…OT compatibility The Lambda NativeAOT build failed because JsonSerializer.Deserialize<T> requires runtime code generation. Use JsonDocument.Parse instead, which is fully AOT-compatible. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use params overload for .Sort() so both sort fields (LastUpdated, Url) are applied instead of the second overwriting the first - Add SearchTitle and Type to source filter to prevent deserialization failures on required DocumentationDocument properties - Handle ES returning date sort values as double with TryGetDouble fallback Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Mpdreamz
requested changes
Mar 13, 2026
Member
Mpdreamz
left a comment
There was a problem hiding this comment.
Nice!
This should use PIT explicitly, multiple queries can share the same one.
That way deploys do not interfere with this API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /v1/changes?since=<ISO8601>&size=100&cursor=<token>API endpoint that returns which documentation pages have changed since a given datesearch_afterfor cursor-based pagination with no 10k hit limiturl,title,lastUpdatedper changed page, withhasMoreandnextCursorfor paginationDetails
New files:
Api.Core/Changes/IChangesGateway.cs— gateway interface + domain recordsApi.Core/Changes/ChangesUsecase.cs— usecase with Base64Url cursor encode/decode + API modelsSearch/ChangesGateway.cs— Elasticsearch range query + search_after implementationModified files:
SerializationContext.cs— AOT serialization registrationMappingsExtensions.cs— endpoint mappingSearch/ServicesExtension.cs— DI registrationTest plan
sinceparameter is missingsincedatehasMore: falseand no cursor🤖 Generated with Claude Code