Text Search (Keyword Search)
Run a BM25 full-text keyword search against your Azure AI Search index. The engine tokenizes the query and matches it against indexed document chunks, returning the top results ranked by keyword relevance. This is the simplest retrieval method and a good starting point in a RAG pipeline before adding semantic or vector search.
| Property | Value |
|---|---|
| Method | POST |
| Content-Type | application/json |
| Service | Azure AI Search (direct API call) |
| API Version | 2025-05-01-preview |
Azure AI Search API Key
api-key{{azureAISearch_Key}}| Field | Type | Required | Description |
|---|---|---|---|
| search | String | Required | The query text to search for. Keywords are matched against all indexed text fields. |
| select | String | Optional | Comma-separated list of fields to return. Example: "section,content". Omit to return all fields. |
| top | Integer | Optional | Number of results to return. Default is 50. Use 3–5 for RAG context chunks. |
Request Body (from Postman collection)
{
"search" : "How do I configure Azure AI Search with OutSystems?",
"select" : "section,content",
"top" : 3
}cURL
curl -X POST \ -H "api-key: <your-azure-search-key>" \ -H "Content-Type: application/json" \ -d '{"search":"How do I configure Azure AI Search?","select":"section,content","top":3}' \ "https://<resource>.search.windows.net/indexes/<index>/docs/search?api-version=2025-05-01-preview"
Sample Response
{
"@odata.context" : "...",
"value": [
{
"@search.score" : 4.2831,
"section" : "Configuring the Search Service",
"content" : "To configure Azure AI Search, navigate to your resource in the Azure portal..."
},
// more results...
]
}value[] means no matches found.api-key header missing or invalid.select.