You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an Azure function that specifies queries using Python
description
Creates an Azure function that formulates queries, document lookup, and suggestions for typeahead queries.
products
azure
azure-cognitive-search
azure-functions
urlFragment
python-azure-function-search
Create an Azure function that specifies queries using Python
This sample provides an Azure function that formulates queries, document lookup, and suggestions for typeahead queries against an Azure AI Search index.
What's in this sample
File
Description
function_app.py
Main Azure Functions entry point
search.py
Handles search query requests
lookup.py
Handles document lookup requests
suggest.py
Handles typeahead suggestion requests
host.json
Azure Functions host configuration
requirements.txt
Python package dependencies
local.settings.json.rename
Template for local settings configuration
shared_code/
Shared utility code
Documentation
This sample is the Python version of the api content used in Tutorial: Add search to web apps. You can substitute this code to create a Python version of the sample app.