Implements search presets management to allow storing and reusing common search
configurations. Adds complete CRUD operations for search presets with proper
error handling and test coverage.
Changes include:
- New Presets and Preset classes for managing search presets
- Full test coverage with realistic search preset scenarios
- Helper class updates for testing preset functionality
- Documentation updates with usage examples for common scenarios
feat(presets): add Presets class for bulk operations
feat(presets): add Preset class for individual preset management
test(presets): add PresetsTest test coverage
refactor(helper): add presets support in test helper
docs(presets): add documentation and examples
Change Summary
This enhancement adds support for managing search presets in the Typesense Java client.
Rationale
By implementing search presets management, users can:
Changes
Added Features:
New Class Presets.java:
New Class Preset.java:
Client Integration in Client.java:
Code Changes:
Documentation Updates:
Test Coverage:
New Test Class PresetsTest.java:
Updates to Helper.java:
Context
This implementation aligns with Typesense's search presets API endpoints and provides a Java-friendly interface for managing search configurations. The changes follow existing patterns in the client library for consistency and ease of use. All operations are properly tested and documented to ensure reliability and maintainability.
PR Checklist