Giter VIP home page Giter VIP logo

azure-search-poc's Introduction

azure-search-poc

This project contains an example of how to populate an index with 2 data sources - 1) Cosmos DB (SQL API), and 2) Azure Blob Storage.

Configure Azure Services

Create the following Azure Services within your Azure subscription:

Azure/Cognitive Search

Set the corresponding service tier ("Free" sku may suffice depending on how much data you may have); accept all defaults.

General Purpose Azure Storage V2

Create a general purpose, V2 Azure storage account. Set the "Replication" to "Locally redundant storage (LRS)" as there is no need for geo-redundancy for a POC.

Within the storage account, create a container to house your documents.

Cosmos DB Collection

Create a Cosmos DB collection. Note that each document must contain a property named metadata_storage_path whose value is equivalent to the base64 encoded fully qualified path of its corresponding blob file. This is what links the Cosmos DB data to the blob storage files.

Postman Collection

Import the Postman collection.

The collection relies on the following Environment Variables:

Variable Description
searchAccount your search account name
searchApiVersion 2019-05-06
searchApiKey primary API key for search account
cosmosDbConnString copy "Connection String" value from Cosmos DB account. Append the value with ";Database=[database-name]"
storageConnString. storage account connection string value

Execute the Postman scripts in order starting with "1.0 Create idx-demo Index".

Test

Test the index from the Azure Portal

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.