SDK v7.x · Flutter semantic search requires
amity_sdk 7.8.7+ · Last verified August 2026 · iOS · Android · Web · FlutterSpeed run — just the code
Speed run — just the code
Prerequisites: SDK installed and authenticated. By default, search returns public communities. Semantic community search can also include discoverable private communities when
includeDiscoverablePrivateCommunity: true; hidden private communities remain excluded.After completing this guide you’ll have:
- Semantic and hashtag post search integrated into your app’s search bar
- Community search with trending and recommended community lists
- User-facing category browsing connected to community filtering
Quick Start: Search Communities
Community search is the primary discovery surface — use a semantic query with optional membership, tag, category, and discoverable-private filters:Step-by-Step Implementation
1
Search communities
Search communities with optional membership status (Full reference → Intelligent Search: Communities
all, member, notMember), tags, discoverable-private, and category filters. Semantic results are ordered by backend relevance; use regular getCommunities() when you need an explicit sort order.2
Get trending communities
Trending communities are ranked by recent activity (posts, members, engagement). Surface these on your explore page for new users.Full reference → Trending & Recommended Communities
TypeScript
3
Get recommended communities
Recommended communities are personalized for the current user based on their activity and interests. Returns up to 15 communities.Full reference → Trending & Recommended Communities
TypeScript
4
Browse communities by category
Organize communities into browsable categories. Query all categories, then filter communities by a selected category.Full reference → Community Categories · Query Communities
TypeScript
5
Search posts
Two complementary search methods are available for posts:Full reference → Intelligent Search: Posts
- Semantic search (
PostRepository.semanticSearchPosts) — AI-powered natural-language search. Best for open-ended queries like “healthy breakfast ideas”. - Hashtag search (
PostRepository.searchPostsByHashtag) — exact hashtag matching. Best for tag-driven browsing like#recipe.
Connect to Moderation & Analytics
Analytics: search usage
Analytics: search usage
Track search query volume and discovery patterns in Admin Console → Analytics Dashboard → Social Insights to understand what users are looking for and which communities are growing.→ Admin Console: Analytics
Admin: category management
Admin: category management
Create and manage community categories in the Admin Console. Categories appear in the community creation flow and in the discovery browse view.→ Admin Console: Product Management
Common Mistakes
Best Practices
Search UX
Search UX
- Add a 300ms debounce to search input before firing the query — prevents excessive API calls while the user types
- Show suggested/recent searches before the user starts typing
- Display skeleton placeholders while results load
- Clearly differentiate post results from community results with distinct card styles
- Show a “No results” empty state with suggestions if the query returns 0 results
Explore/Discover UX
Explore/Discover UX
- Show trending communities prominently for logged-in users with no following history
- Once a user has joined 5+ communities, replace trending with personalized recommendations
- Use horizontal scrolling category pills for browsing — they take less vertical space than a list
- Cache trending and recommended results for 5-10 minutes — they don’t need to be real-time
Performance
Performance
- Use
searchPosts()Live Collection — this handles debounced re-querying automatically on most platforms - Limit search result sets to 20-30 items; use pagination for deeper results
- Pre-load categories at app launch and cache locally — they change infrequently
Next Steps
Your next step → User Search & People Discovery
Content search is working — now let users find each other with people search and suggestions.
Community Platform
Build the communities that discovery surfaces
Build a Social Feed
Show content from discovered communities in a feed
Notifications & Engagement
Notify users about trending content they’d be interested in