GithubHelp home page GithubHelp logo

chanted3 / azure-search-lab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/azure-search-lab

0.0 0.0 0.0 3.55 MB

Source code in C# for a sample client app that invokes indexing and query execution against an Azure Cognitive Search service.

License: MIT License

JavaScript 0.07% C# 17.86% CSS 26.86% HTML 55.21%

azure-search-lab's Introduction

Azure Cognitive Search Lab

Azure Cognitive Search Lab (also known as AzSearchLab) is a web-based debugging tool for Azure Cognitive Search troubleshooting. It provides a centralized interface for designing and testing indexing and query operations.

This tool is written in C# but calls the Search REST APIs for specific operations.

Features

This project framework is designed to run locally. It connects to your Azure Cognitive Search service, with the ability to test the following features:

  • Queries
  • Index definitions
  • Suggestions
  • Analyzers
  • Autocomplete
  • Synonyms
  • Built-in analyzers
  • Web api skills
  • Semantic Search

Prerequisites

This project assumes a Windows development environment.

Getting Started

Download the source code, open the solution in Visual Studio, and press F5 to build the project. After it builds, you can run the website locally with IIS Express.

Alternatively, you can also deploy this website to your app service. image

  1. Download the package and extract the source files. image

  2. Open the source code with Visual Studio 2019 or higher version.

  3. Press F5 to build the project:

    image

  4. Run the source code with IIS Express.

    image

  5. Enter the search service name and its key. Then load the service information. You should see all of the indexes that exist in your service.

  6. There are GET and POST type query. With this tool, you don't need to check the document for each parameter and its format. You can select the parameter on UI, then test the GET or POST query and analyze its query result.

    image

    image

  7. Update an index definition.

    Updates to an index definition isn't allowed on the Azure portal and can only be changed programmatically. Azure Search Lab supports direct updates to an index JSON definition.

    image

  8. Query and update document.

    You can also change and update a search document after it's been indexed. For this task, query the documents to find one you want to change, then make your update and save the changes to index.

    image

  9. Test suggestions.

    This tool provide a UI to simulate suggestions.

    image

  10. Test analyzer behaviors.

    You can load a search index and test its analyzer configurations. This step shows you how the analyzer processes text into tokens.

    image

  11. Test autocomplete.

    You can test the auto-complete rule of the index and confirm its behavior. image

  12. Create, update and delete synonym maps.

    You can create, update or delete the synonym map on index fields. image

    You can create new synonym maps by specifying a name, adding rules, and selecting which index fields that synonym map should be used with. You can use Ctrl+Click to multi-select the fields you want to assign. image

    You can also delete an existing synonym map. image

    You can also update a field's synonym map assignment by selecting or de-selecting them. Notice that each field can have ONLY one synonym map. So if you update the field with a new assignment, the previous synonym configured on this field is removed automatically. image

  13. Test built-in analyzers, tokenizers, token filters and char filters.

    You can test different built-in analyzers, tokenizers, token filters and char filters to select the one that fits your project. The tool shows you how the various combinations break text into tokens.

    image

  14. Test a Custom Web API skill.

    You can test a custom web api skill's behavior. The URL, method, headers and payload format will be extracted from the web api skill automatically. You can then change the payload to use real data or test data. Make POST/PUT request to web api server. The response will appear in the tool.

    image

azure-search-lab's People

Contributors

yuhaii avatar heidisteen avatar microsoftopensource avatar gmndrg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.