Any
💻 Coding & Dev
Advanced
Implement Full-Text Search
Add powerful search to any application from simple filtering to full-text search.
The Prompt
Implement search functionality for the following application: Application type: [web app / API / mobile backend] What needs to be searchable: [products / articles / users / documents / other] Search type needed: [simple filter / full-text / fuzzy / semantic / faceted / autocomplete / combination] Database: [PostgreSQL / MySQL / MongoDB / Elasticsearch / other] Backend: [Node.js / Python / PHP / other] Frontend: [React / Vue / other] Data volume: [small under 10k / medium / large millions] Performance requirements: [response time target] Multilingual: [yes / no] Provide a complete search implementation: SEARCH ARCHITECTURE: - Recommended search approach for this use case - Database native search vs dedicated search engine decision - Index design - Query architecture INDEXING: - Fields to index and why - Index configuration (tokenisation, stemming, stopwords) - Index update strategy (real-time / batch) - Index maintenance SEARCH API: - Search endpoint design - Query parameter schema - Pagination approach - Sorting options - Filter parameters - Response format FULL BACKEND IMPLEMENTATION: - Search query builder - Filter logic - Relevance scoring - Fuzzy matching configuration - Autocomplete endpoint - Search analytics logging FRONTEND SEARCH UI: - Search input component with debouncing - Results display component - Loading and empty states - Highlighting matched terms in results - Facets/filters UI if applicable - URL state management for search ADVANCED FEATURES: - Autocomplete/typeahead implementation - Spell correction - Synonyms handling - Boosting certain fields or records - Search analytics (what people search for) PERFORMANCE: - Query optimisation - Caching search results - Rate limiting the search endpoint TESTING: - Search relevance testing approach - Edge case tests - Performance benchmarks
📝 Fill in the blanks
Replace these placeholders with your own content:
[web app / API / mobile backend]
[products / articles / users / documents / other]
[simple filter / full-text / fuzzy / semantic / faceted / autocomplete / combination]
[PostgreSQL / MySQL / MongoDB / Elasticsearch / other]
[Node.js / Python / PHP / other]
[React / Vue / other]
[small under 10k / medium / large millions]
[response time target]
[yes / no]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into Any
Open your preferred AI assistant and paste the prompt to get started.