Overview
Thesearch tool enables you to search through documentation content using text queries. It supports boolean operators (AND, OR) for advanced search capabilities and returns up to 10 most relevant results ranked by relevance score.
The search tool uses two search strategies:
- Semantic search (when available): Uses Oxygen Feedback service for intelligent, context-aware search
- Index-based search (fallback): Traditional keyword-based search using pre-built documentation indexes
Parameters
Search query string. Supports boolean operators for advanced searching:
AND- Require all terms (e.g., “XML AND schema”)OR- Match any term (e.g., “WSDL OR WADL”)- Combine operators for complex queries (e.g., “XML AND (schema OR DTD)“)
Response Format
The tool returns a JSON array of search results, with each result containing:Unique document identifier in the format
index:relativePath. This ID is required for the fetch tool to retrieve full document content.Examples:0:topics/wsdl-converter.html1:reference/api-guide.html
Document title extracted from the documentation page.
Complete URL to the documentation page. Can be used for direct browser access or reference links.
Success Response
Error Response
When an error occurs, the tool returns an error message:- Index loading failure: The documentation index cannot be accessed or downloaded
- Search parsing error: Invalid query syntax or search operation failure
- Network errors: Connection issues or timeout when accessing remote resources
Usage Examples
Real-World Example
Here’s a complete example from the test suite showing how to search and then fetch document content:Implementation Details
The search tool is implemented inapp/[...site]/route.ts:37-84:
The tool returns a maximum of 10 results to balance comprehensiveness with performance. Results are ranked by relevance score, with the most relevant documents appearing first.
Search Strategies
-
Semantic Search (Single site only):
- Attempts to use Oxygen Feedback’s AI-powered search
- Provides context-aware, intelligent results
- Automatically falls back to index search if unavailable
-
Index-Based Search (All sites):
- Uses pre-built search indexes from WebHelp output
- Supports boolean operators (AND, OR)
- Works for both single and federated multi-site search
Federated Search
When searching across multiple documentation sites, results are merged and sorted by relevance score:Related Tools
- fetch - Retrieve complete document content by ID