Presentation is loading. Please wait.

Presentation is loading. Please wait.

Full Text Search using Azure Search. Shankar Subramanyam Senior Consultant | Enthusiast:

Similar presentations


Presentation on theme: "Full Text Search using Azure Search. Shankar Subramanyam Senior Consultant | Enthusiast:"— Presentation transcript:

1 Full Text Search using Azure Search

2 Shankar Subramanyam Senior Consultant shankarblr@gmail.comshankarblr@gmail.com | @Shankarblr@Shankarblr Enthusiast: Web/Cloud Technologies Financials Economics About me

3 Agenda Overview of Full text search using Azure Search Demo – Build Movies Catalog using Azure Search Q & A

4 What is full text search? In text retrieval, full text search refers to techniques for searching a single computer-stored document or a collection in a full text database. Full-text search is distinguished from searches based on metadata or on parts of the original texts represented in databases (such as titles, abstracts, selected sections, or bibliographical references).text retrievalcomputerdocumentfull text databasemetadata Reference - http://en.wikipedia.org/wiki/Full_text_searchhttp://en.wikipedia.org/wiki/Full_text_search

5 Full text search platform Lucene Solr ElasticSearch Azure Search FSIS Database Full text search etc.

6 Key words in search Indexes Documents Fields Types of searchability Retrievable Non-retrievable Tokenization - Analyzer Facets Scoring

7 What is Azure Search ? Azure Search is a PaaS servicePaaS ElasticSearch as a managed service High performance Horizontally scalable Administration and querying Via REST API Via C#, using Azure Search Client Library (NuGet: AzureSearchClient) Secured using API keys Query keys (multiple) Management keys (two

8 Demo – Create Search Service in Azure portal

9 1.Login to Azure Portal 2.Click New 3.Select Data + Storage 4.Select Search as shown

10 1.Fill all the information 2.For Pricing Tire - Make sure to select Free 3.Click Create to create Azure Search Service

11 Service Name and API Key

12 { js on }

13 Inverted index aardvark hood red little riding robin women zoo Little Red Riding Hood Robin Hood Little Women 01 0 2 0 0 2 1 0 1 2 {(2, 1)} 01 {(2, 0)}{(0, 0)} 0 Terms/ Words Documents

14 Azure Search is structured A search index has a predefined structure It is not dynamic Each document can have below operations Search Suggestion Lookup Count Each field in the index has characteristics defined when created Filterable? Searchable? Faceted? Retrievable? Sortable?

15 Field Characteristics: Key Required! Can only be on one field for the document Can be used to look up a document directly Update Delete

16 Field Characteristics: Searchable Makes the field full-text-search-able Allowed data types are string and collection Breaks the words of the field for indexing purposes “Big Red Jeep” will become separate components A search for “big”, “red”, “jeep”, or “big jeep” will hit this record Searchable fields cause bloat! Only make it searchable if it needs to be

17 Field Characteristics: Filterable Doesn’t under go word breaking Exact matches only Only searches for “big red jeep” will hit a “big red jeep” record

18 Field Characteristics: Sortable By default, results are sorted by score

19 Field Characteristics: Facetable Data the data type except Geography points are facetable Used to rank records by other notions Jeeps that sold by this {dealer} Jeeps that are this {color}

20 Field Characteristics: Suggestions Used for auto-complete Only for string or collection of string False by default Causes bloat in the index!

21 Field Characteristics: Retrievable Allows the field to be returned in the search results Key fields must be retrievable

22 Data Type / Properties Matrix

23 Demo : Movies Catalog Create Index

24 Query parameters Request - GET /indexes/[index name]/docs?[query parameters] Parameter – search =[string]$orderby=[string] searchMode=any|all facet=[string] searchFields=[string] api-version=[string] $skip=#scoringProfile=[string] $top=# highlight=[string] $count=true|false scoringParameter=[string] $select=[string] highlightPreTag=[string] $filter=[string] highlightPostTag=[string] Example : https://rocks.search.windows.net/indexes/movies/docs?search=*&$count=true&$orderby=Year desc&api-version=2015-02-28&facet=Year

25 Demo : Movies Catalog Consume Index

26 Q & A

27 References Azure Search REST API http://msdn.microsoft.com/en-us/library/azure/dn798935.aspx http://azure.microsoft.com/en- in/documentation/articles/search-api-2014-10-20-preview/ http://azure.microsoft.com/en- in/documentation/articles/search-api-2014-10-20-preview/ Azure Search Client Library Getting Started https://code.msdn.microsoft.com/Getting-Started-with-Azure- 50b624b7 https://code.msdn.microsoft.com/Getting-Started-with-Azure- 50b624b7 Inverted index http://en.wikipedia.org/wiki/Inverted_index

28

29

30

31


Download ppt "Full Text Search using Azure Search. Shankar Subramanyam Senior Consultant | Enthusiast:"

Similar presentations


Ads by Google