Add showPerformanceDetails option to search endpoint#503
Add showPerformanceDetails option to search endpoint#503claudeaceae wants to merge 1 commit intomeilisearch:mainfrom
Conversation
Add the showPerformanceDetails boolean parameter to SearchParameters and the performanceDetails response field to Searchable, as introduced in Meilisearch v1.35.0. The performanceDetails field is returned as [String: String] raw data per the issue requirement to not add typed accessors, since the fields are subject to change. Closes meilisearch#501 (search endpoint only — multi-search and similar documents endpoints are not yet implemented in this SDK). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe changes implement support for the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds support for the
showPerformanceDetailsoption introduced in Meilisearch v1.35.0, as described in #501.When
showPerformanceDetailsis set totrue, the search response includes aperformanceDetailsobject containing performance trace data. Per the issue guidelines, the response is returned as raw[String: String]data without typed accessors, since the fields are subject to change.Changes
showPerformanceDetails: Bool?toSearchParametersperformanceDetails: [String: String]?toSearchable<T>(SearchResult)Scope note
This PR covers the search endpoint. The SDK does not currently have multi-search (#379) or similar documents (#445) endpoints implemented, so
showPerformanceDetailssupport for those can be added when those features are implemented.Related to #501 (search portion)
Test plan