Add facetSearch and prefixSearch index settings#507
Add facetSearch and prefixSearch index settings#507claudeaceae wants to merge 1 commit intomeilisearch:mainfrom
Conversation
Implements meilisearch#456: adds get/update/reset methods for the `facetSearch` (boolean) and `prefixSearch` (string) settings introduced in Meilisearch v1.12.0. Includes async wrappers, unit tests (95 pass), integration test stubs, and documentation code samples. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThis PR adds support for Meilisearch v1.12.0's new Changes
Poem
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
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
Closes #456
Adds support for the
facetSearchandprefixSearchindex settings introduced in Meilisearch v1.12.0:facetSearch(Bool): Controls whether facet search is enabled (default:true)prefixSearch(String): Controls prefix matching behavior —"indexingTime"or"disabled"(default:"indexingTime")Both settings support the standard get/update/reset pattern via dedicated API endpoints.
Changes
facetSearchandprefixSearchfieldsgetFacetSearch,updateFacetSearch,resetFacetSearch,getPrefixSearch,updatePrefixSearch,resetPrefixSearchmethodstestFacetSearch()andtestPrefixSearch()async test methodsget_facet_search_settings_1,update_facet_search_settings_1,reset_facet_search_settings_1,get_prefix_search_settings_1,update_prefix_search_settings_1,reset_prefix_search_settings_1)Usage
Test plan
Summary by CodeRabbit
New Features
Tests