Skip to main content

Azure Search Test Analyzer API Client Tool

Project description

azure-search-ta

Azure Search Test Analyzer API client tool that shows how an analyzer breaks text into tokens utlizing Azure Search Analyze API.

Web UI for Test Analyzer API

Web UI Tool that allows you to see how an analyzer breaks text into tokens via Web UI. image0

Installation is very simple - (1) just copying files under azure-search-ta/ui onto your web server, (2) Open analyze-api.php with your editor and configure your Azure Search serivce name and Azure Search API Admin key, that’s it! Make sure if all related files are accessible from the web server, and also if .php file is executable in the web server.

vi analyze-api.php
$azureSearchAccount="<Azure Search Service name>";
$azureSearchApiKey = "<Azure Search API Admin Key>"

Command-Line Tool

1. Installation

Install azure-search-ta python package by uinsg pip. Pip is a package management system used to install and manage software packages, such as those found in the Python Package Index.

pip install azure-search-ta

2. Preparation

2-1. Create Azure Search Account and configure search.conf

To enjoy text analysis using this command, you must create an Azure Search service in the Azure Portal. Please follow the instrucftion below: * Create a service

Once the Azure search account is created, add Azure Search service name and API Key to the following search.conf file. Regarding API Key, an admin key must be added instead of a query key as the Analyze API request requires an admin key.

# Azure Search Service Name ( never put space before and after = )
SEARCH_SERVICE_NAME=<Azure Search Service name>
# Azure Search API Admin Key ( never put space before and after = )
SEARCH_API_KEY=<Azure Search API Admin Key>

2-2. Create Index Schema to Analyze Text

You need an index name to construct Azure Search Analyze API request internally in the tool. For creating an index, please follow the instruction below

Regardless of your index definitions you can test with any Azure Search’s predefined analyzers. Therefore the following index schema (index name:‘ta’) is enough for the testing with predefined analyzers: ``` { “name”: “ta”, “fields”: [ { “name”:“id”, “type”:“Edm.String”, “key”: true, “searchable”: false },

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for azure-search-ta, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size azure_search_ta-0.2.1-py2-none-any.whl (34.4 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size azure-search-ta-0.2.1.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page