Skip to main content
A complete example showing how to build a product search with filters, ranking, and pagination.
Example output:

Example 2: Content Recommendation System

Build a personalized content recommendation system that excludes already-seen items and respects user preferences.
Example output:

Example 3: Multi-Category Search with Batch Operations

Use batch operations to search across multiple categories simultaneously and compare results.
Example output:

Best Practices

Based on these examples, here are key best practices:
  1. Build filters incrementally - Construct complex filters by combining simpler conditions
  2. Use batch operations - When searching multiple variations, use batch operations for better performance
  3. Select only needed fields - Reduce data transfer by selecting only the fields you’ll use
  4. Handle empty results gracefully - Always check if results exist before processing
  5. Use hybrid search for personalization - Combine multiple ranking signals with RRF for better recommendations
  6. Paginate large result sets - Use limit and offset for efficient pagination
  7. Format results for your use case - Transform raw results into application-specific formats

Next Steps