SlideShare ist ein Scribd-Unternehmen logo
1 von 33
3分鐘Azure Search自我
介紹
Jaja
開始前…
 使用前要先有服務的URL跟API金錀
 服務 URL命名完後不可修改
 要指定API版本
 一組服務金錀有分為Manger(2組)與Query(50組)
 建立Index時column屬性的設定會影響後續查詢
免費試用限制
 儲存空間上限50MB
 文件數量10000個
 最多只能建3個索引
 不保證你的效能(笑)
大家都有的限制-Request
 Maximum of 16 MB per request
 Maximum 8 KB URL length
 Maximum 1000 documents per batch of index uploads, merges, or deletes.
 Maximum 25 characters of text in Suggest API request, minimum 3 characters
 Maximum 32 fields in $orderby clause
 Maximum search term size is 32766 bytes (32 KB minute 2 bytes) of UTF-8 encoded
text
大家都有的限制-Response
 Maximum 1000 documents returned per page of search results
 Maximum 10 suggestions returned per Suggest API request
兩個預覽的板本
兩種操作
There are two types of actions that can be executed against the Azure Search Service:
• Index Management: This includes administrative tasks that are executed against a search
service or search index.
• Document Actions: These actions query and manage the corpus for a given index
索引 操作
 CREATE -> POST /indexes?api-version=2014-07-31-Preview
 UPDATE -> PUT /indexes/[index name]?api-version=2014-07-31-Preview
 DELETE -> DELETE /indexes/[index name]?api-version=2014-07-31-Preview
 GET -> GET /indexes/[index name]?api-version=2014-07-31-Preview
 LIST -> GET /indexes?api-version=2014-07-31-Preview
文件 操作
 DML -> POST /indexes/[index name]/docs/index?api-version=2014-07-31-Preview
 GET -> GET /indexes/[index name]/docs?[query parameters]
 Lookup -> GET /indexes/[index name]/docs/[key]?[query parameters]
 DML 操作是用JSON欄位 @search.action做定義
 "@search.action": "upload (default) | merge | mergeOrUpload | delete"
服務命名規則
 長度需介於2-15之間
 只能用小寫英文數字與破折號( - )
 不能用連續的破折號 ( -----helloworld-----)
 第二個字元不能用破折號
不要用破折號!!!
索引命名規則
 長度需介於2-128之間
 只能用小寫英文數字與破折號( - )
 不能用連續的破折號 ( -----helloworld-----)
 不能有斜線(  / )或是點( . )
欄位命名規則
 除了英文數字,還可以用底線 ( _ )
 但是要英文開頭
 不能有點( . )、分號( : ) 跟小老鼠 ( @ )
 不能用azureSearch當開頭
文件命名規則
 不準用底線開頭 ( _ )
 不能有斜線(  / )與點( . )
 建議用 | 來分割你的複合主鍵
Tips
 增加複本可以提升每秒查詢數量與高可用性(最少3個)
 複本會比較常使用
 資料分割只會應用在特定的場合
C# 使用Azure Search
 請愛用 HttpClient
 Header 一定要有 api-key
 搭配HttpRequestMessage送出資料
 傳輸的資料內容一定是JSON格式
 詳細的範例 : https://azuresearchadventureworksdemo.codeplex.com/
 記得用NuGet console更新一下MVC
 Update-package -reinstall Microsoft.AspNet.Mvc
End
English Version
Begin…
 Need service URL and API Key before start
 Cannot rename service name
 Requests must include the api-version
 One service include two API Key – Manage(2) and Query (50) .
 Index column attribute will affect your query
Free trial Limite
 Storage limit 50MB
 Documents limit 10000
 Only 3 index
 They don't ensure service usable
Request Limit
 Maximum of 16 MB per request
 Maximum 8 KB URL length
 Maximum 1000 documents per batch of index uploads, merges, or deletes.
 Maximum 25 characters of text in Suggest API request, minimum 3 characters
 Maximum 32 fields in $orderby clause
 Maximum search term size is 32766 bytes (32 KB minute 2 bytes) of UTF-8 encoded
text
Response Limit
 Maximum 1000 documents returned per page of search results
 Maximum 10 suggestions returned per Suggest API request
Two Preview version Now
Two Operating
There are two types of actions that can be executed against the Azure Search Service:
• Index Management: This includes administrative tasks that are executed against a search service or search in
• Document Actions: These actions query and manage the corpus for a given index
Index
 CREATE -> POST /indexes?api-version=2014-07-31-Preview
 UPDATE -> PUT /indexes/[index name]?api-version=2014-07-31-Preview
 DELETE -> DELETE /indexes/[index name]?api-version=2014-07-31-Preview
 GET -> GET /indexes/[index name]?api-version=2014-07-31-Preview
 LIST -> GET /indexes?api-version=2014-07-31-Preview
Document
 DML -> POST /indexes/[index name]/docs/index?api-version=2014-07-31-Preview
 GET -> GET /indexes/[index name]/docs?[query parameters]
 Lookup -> GET /indexes/[index name]/docs/[key]?[query parameters]
 DML operating is use JSON column @search.action to declare action
 "@search.action": "upload (default) | merge | mergeOrUpload | delete"
Service name conventions
 Must be between 2 and 15 characters
 Must start with a letter or number, followed by zero or more letters, numbers or
dashes ('-')
 Must be lowercase
 Consecutive dashes are not allowed
 Second character cannot be a dash
Don’t use dashes !!!
Index name conventions
 Must be between 2 and 128 characters total
 Must start with a letter or number, followed by zero or more letters, numbers
or dashes ('-')
 Must be lowercase
 Consecutive dashes are not allowed
Field name conventions
 Must be between 1 and 128 characters
 Can contain letters, numbers, and underscore ('_')
 Must start with a letter
 Cannot start with "azureSearch"
Document key naming conventions
 Can contain letters, numbers, underscore ('_'), dashes ('-'), or equal sign ('=')
 Cannot start with an underscore ('_')
 If you use compound keys and need a separator, we recommend using '-', '_',
or '='.
 If the keys in your source data contain characters other than the above, we
recommend encoding them using a URL-safe variant of Base64. For example,
in .NET you can use the HttpServerUtility.UrlTokenEncode method for this
purpose.
 Cannot contain backslash (''), slash ('/'), or dot ('.')
 If you use compound keys and need a separator, we recommend using |.
Tips
 Increasing queries per second (QPS) or achieving high availability is done by
adding replicas
 high availability need last three replicas
 Replicas almost used in application
C# Azure Search
 Using HttpClient
 Header need have api-key
 Use HttpRequestMessage send content
 Data only use JSON
 More example: https://azuresearchadventureworksdemo.codeplex.com/
 You may need use NuGet console to updating MVC reference
 Update-package -reinstall Microsoft.AspNet.Mvc

Weitere ähnliche Inhalte

Ähnlich wie 3分鐘Azure search自我介紹 ( 3 min talking about Azure Search)

Amazon’s Cloud Computing Efforts
Amazon’s Cloud Computing EffortsAmazon’s Cloud Computing Efforts
Amazon’s Cloud Computing Effortsawesomesos
 
Advanced full text searching techniques using Lucene
Advanced full text searching techniques using LuceneAdvanced full text searching techniques using Lucene
Advanced full text searching techniques using LuceneAsad Abbas
 
Basic datatypes - deep understanding
Basic datatypes - deep understandingBasic datatypes - deep understanding
Basic datatypes - deep understandingLiron Amitzi
 
Cloud computing @ slideshare
Cloud computing @ slideshareCloud computing @ slideshare
Cloud computing @ slideshareAkash Agrawal
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
ElasticSearch for .NET Developers
ElasticSearch for .NET DevelopersElasticSearch for .NET Developers
ElasticSearch for .NET DevelopersBen van Mol
 
Lessons Learned While Scaling Elasticsearch at Vinted
Lessons Learned While Scaling Elasticsearch at VintedLessons Learned While Scaling Elasticsearch at Vinted
Lessons Learned While Scaling Elasticsearch at VintedDainius Jocas
 
Azure Software As Service
Azure Software As ServiceAzure Software As Service
Azure Software As ServiceJosef Finsel
 
Elasticsearch and Spark
Elasticsearch and SparkElasticsearch and Spark
Elasticsearch and SparkAudible, Inc.
 
Getting started with Elasticsearch in .net
Getting started with Elasticsearch in .netGetting started with Elasticsearch in .net
Getting started with Elasticsearch in .netIsmaeel Enjreny
 
Getting Started With Elasticsearch In .NET
Getting Started With Elasticsearch In .NETGetting Started With Elasticsearch In .NET
Getting Started With Elasticsearch In .NETAhmed Abd Ellatif
 
Real-Time Data Exploration and Analytics with Amazon Elasticsearch Service
Real-Time Data Exploration and Analytics with Amazon Elasticsearch ServiceReal-Time Data Exploration and Analytics with Amazon Elasticsearch Service
Real-Time Data Exploration and Analytics with Amazon Elasticsearch ServiceAmazon Web Services
 
MySQL And Search At Craigslist
MySQL And Search At CraigslistMySQL And Search At Craigslist
MySQL And Search At CraigslistJeremy Zawodny
 
Search page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netSearch page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netsonia merchant
 
Building A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- IIBuilding A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- IIPooja Gaikwad
 
SQLlite and Full Text Search Presentation
SQLlite and Full Text Search PresentationSQLlite and Full Text Search Presentation
SQLlite and Full Text Search Presentationleximo
 
(ATS6-PLAT02) Accelrys Catalog and Protocol Validation
(ATS6-PLAT02) Accelrys Catalog and Protocol Validation(ATS6-PLAT02) Accelrys Catalog and Protocol Validation
(ATS6-PLAT02) Accelrys Catalog and Protocol ValidationBIOVIA
 

Ähnlich wie 3分鐘Azure search自我介紹 ( 3 min talking about Azure Search) (20)

Amazon’s Cloud Computing Efforts
Amazon’s Cloud Computing EffortsAmazon’s Cloud Computing Efforts
Amazon’s Cloud Computing Efforts
 
Advanced full text searching techniques using Lucene
Advanced full text searching techniques using LuceneAdvanced full text searching techniques using Lucene
Advanced full text searching techniques using Lucene
 
Basic datatypes - deep understanding
Basic datatypes - deep understandingBasic datatypes - deep understanding
Basic datatypes - deep understanding
 
Cloud computing @ slideshare
Cloud computing @ slideshareCloud computing @ slideshare
Cloud computing @ slideshare
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
ElasticSearch for .NET Developers
ElasticSearch for .NET DevelopersElasticSearch for .NET Developers
ElasticSearch for .NET Developers
 
SQL cheat sheet.pdf
SQL cheat sheet.pdfSQL cheat sheet.pdf
SQL cheat sheet.pdf
 
Lessons Learned While Scaling Elasticsearch at Vinted
Lessons Learned While Scaling Elasticsearch at VintedLessons Learned While Scaling Elasticsearch at Vinted
Lessons Learned While Scaling Elasticsearch at Vinted
 
Sql Basics And Advanced
Sql Basics And AdvancedSql Basics And Advanced
Sql Basics And Advanced
 
Azure Software As Service
Azure Software As ServiceAzure Software As Service
Azure Software As Service
 
Elasticsearch and Spark
Elasticsearch and SparkElasticsearch and Spark
Elasticsearch and Spark
 
Getting started with Elasticsearch in .net
Getting started with Elasticsearch in .netGetting started with Elasticsearch in .net
Getting started with Elasticsearch in .net
 
Getting Started With Elasticsearch In .NET
Getting Started With Elasticsearch In .NETGetting Started With Elasticsearch In .NET
Getting Started With Elasticsearch In .NET
 
Oracle notes
Oracle notesOracle notes
Oracle notes
 
Real-Time Data Exploration and Analytics with Amazon Elasticsearch Service
Real-Time Data Exploration and Analytics with Amazon Elasticsearch ServiceReal-Time Data Exploration and Analytics with Amazon Elasticsearch Service
Real-Time Data Exploration and Analytics with Amazon Elasticsearch Service
 
MySQL And Search At Craigslist
MySQL And Search At CraigslistMySQL And Search At Craigslist
MySQL And Search At Craigslist
 
Search page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-netSearch page-with-elasticsearch-and-dot-net
Search page-with-elasticsearch-and-dot-net
 
Building A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- IIBuilding A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- II
 
SQLlite and Full Text Search Presentation
SQLlite and Full Text Search PresentationSQLlite and Full Text Search Presentation
SQLlite and Full Text Search Presentation
 
(ATS6-PLAT02) Accelrys Catalog and Protocol Validation
(ATS6-PLAT02) Accelrys Catalog and Protocol Validation(ATS6-PLAT02) Accelrys Catalog and Protocol Validation
(ATS6-PLAT02) Accelrys Catalog and Protocol Validation
 

Mehr von Aaron King

Golang start and tips
Golang start and tipsGolang start and tips
Golang start and tipsAaron King
 
Jenkins vs gogs
Jenkins vs gogsJenkins vs gogs
Jenkins vs gogsAaron King
 
Database index(sql server)
Database index(sql server)Database index(sql server)
Database index(sql server)Aaron King
 
第一次Elasticsearch就上手
第一次Elasticsearch就上手第一次Elasticsearch就上手
第一次Elasticsearch就上手Aaron King
 
Running with emmet and scss
Running with emmet  and scssRunning with emmet  and scss
Running with emmet and scssAaron King
 
How do i imagine my site
How do i imagine my siteHow do i imagine my site
How do i imagine my siteAaron King
 
網頁三本柱最終章Javascript與jquery
網頁三本柱最終章Javascript與jquery網頁三本柱最終章Javascript與jquery
網頁三本柱最終章Javascript與jqueryAaron King
 
那些年網頁Ps切板的小事
那些年網頁Ps切板的小事那些年網頁Ps切板的小事
那些年網頁Ps切板的小事Aaron King
 
網頁三本柱之Html與css
網頁三本柱之Html與css網頁三本柱之Html與css
網頁三本柱之Html與cssAaron King
 
我的第一個Git版控
我的第一個Git版控我的第一個Git版控
我的第一個Git版控Aaron King
 
網頁基礎介紹
網頁基礎介紹網頁基礎介紹
網頁基礎介紹Aaron King
 
Security.pptx [repaired]
Security.pptx [repaired]Security.pptx [repaired]
Security.pptx [repaired]Aaron King
 

Mehr von Aaron King (14)

Golang start and tips
Golang start and tipsGolang start and tips
Golang start and tips
 
Jenkins vs gogs
Jenkins vs gogsJenkins vs gogs
Jenkins vs gogs
 
Database index(sql server)
Database index(sql server)Database index(sql server)
Database index(sql server)
 
第一次Elasticsearch就上手
第一次Elasticsearch就上手第一次Elasticsearch就上手
第一次Elasticsearch就上手
 
Css animation
Css animationCss animation
Css animation
 
Running with emmet and scss
Running with emmet  and scssRunning with emmet  and scss
Running with emmet and scss
 
How do i imagine my site
How do i imagine my siteHow do i imagine my site
How do i imagine my site
 
網頁三本柱最終章Javascript與jquery
網頁三本柱最終章Javascript與jquery網頁三本柱最終章Javascript與jquery
網頁三本柱最終章Javascript與jquery
 
那些年網頁Ps切板的小事
那些年網頁Ps切板的小事那些年網頁Ps切板的小事
那些年網頁Ps切板的小事
 
網頁三本柱之Html與css
網頁三本柱之Html與css網頁三本柱之Html與css
網頁三本柱之Html與css
 
我的第一個Git版控
我的第一個Git版控我的第一個Git版控
我的第一個Git版控
 
網頁基礎介紹
網頁基礎介紹網頁基礎介紹
網頁基礎介紹
 
Rails gril
Rails grilRails gril
Rails gril
 
Security.pptx [repaired]
Security.pptx [repaired]Security.pptx [repaired]
Security.pptx [repaired]
 

Kürzlich hochgeladen

Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Delhi Call girls
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...singhpriety023
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableSeo
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)Delhi Call girls
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Servicegwenoracqe6
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...Neha Pandey
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 

Kürzlich hochgeladen (20)

Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 

3分鐘Azure search自我介紹 ( 3 min talking about Azure Search)

  • 2. 開始前…  使用前要先有服務的URL跟API金錀  服務 URL命名完後不可修改  要指定API版本  一組服務金錀有分為Manger(2組)與Query(50組)  建立Index時column屬性的設定會影響後續查詢
  • 3. 免費試用限制  儲存空間上限50MB  文件數量10000個  最多只能建3個索引  不保證你的效能(笑)
  • 4. 大家都有的限制-Request  Maximum of 16 MB per request  Maximum 8 KB URL length  Maximum 1000 documents per batch of index uploads, merges, or deletes.  Maximum 25 characters of text in Suggest API request, minimum 3 characters  Maximum 32 fields in $orderby clause  Maximum search term size is 32766 bytes (32 KB minute 2 bytes) of UTF-8 encoded text
  • 5. 大家都有的限制-Response  Maximum 1000 documents returned per page of search results  Maximum 10 suggestions returned per Suggest API request
  • 7. 兩種操作 There are two types of actions that can be executed against the Azure Search Service: • Index Management: This includes administrative tasks that are executed against a search service or search index. • Document Actions: These actions query and manage the corpus for a given index
  • 8. 索引 操作  CREATE -> POST /indexes?api-version=2014-07-31-Preview  UPDATE -> PUT /indexes/[index name]?api-version=2014-07-31-Preview  DELETE -> DELETE /indexes/[index name]?api-version=2014-07-31-Preview  GET -> GET /indexes/[index name]?api-version=2014-07-31-Preview  LIST -> GET /indexes?api-version=2014-07-31-Preview
  • 9. 文件 操作  DML -> POST /indexes/[index name]/docs/index?api-version=2014-07-31-Preview  GET -> GET /indexes/[index name]/docs?[query parameters]  Lookup -> GET /indexes/[index name]/docs/[key]?[query parameters]  DML 操作是用JSON欄位 @search.action做定義  "@search.action": "upload (default) | merge | mergeOrUpload | delete"
  • 10. 服務命名規則  長度需介於2-15之間  只能用小寫英文數字與破折號( - )  不能用連續的破折號 ( -----helloworld-----)  第二個字元不能用破折號
  • 12. 索引命名規則  長度需介於2-128之間  只能用小寫英文數字與破折號( - )  不能用連續的破折號 ( -----helloworld-----)  不能有斜線( / )或是點( . )
  • 13. 欄位命名規則  除了英文數字,還可以用底線 ( _ )  但是要英文開頭  不能有點( . )、分號( : ) 跟小老鼠 ( @ )  不能用azureSearch當開頭
  • 14. 文件命名規則  不準用底線開頭 ( _ )  不能有斜線( / )與點( . )  建議用 | 來分割你的複合主鍵
  • 16. C# 使用Azure Search  請愛用 HttpClient  Header 一定要有 api-key  搭配HttpRequestMessage送出資料  傳輸的資料內容一定是JSON格式  詳細的範例 : https://azuresearchadventureworksdemo.codeplex.com/  記得用NuGet console更新一下MVC  Update-package -reinstall Microsoft.AspNet.Mvc
  • 17. End
  • 19. Begin…  Need service URL and API Key before start  Cannot rename service name  Requests must include the api-version  One service include two API Key – Manage(2) and Query (50) .  Index column attribute will affect your query
  • 20. Free trial Limite  Storage limit 50MB  Documents limit 10000  Only 3 index  They don't ensure service usable
  • 21. Request Limit  Maximum of 16 MB per request  Maximum 8 KB URL length  Maximum 1000 documents per batch of index uploads, merges, or deletes.  Maximum 25 characters of text in Suggest API request, minimum 3 characters  Maximum 32 fields in $orderby clause  Maximum search term size is 32766 bytes (32 KB minute 2 bytes) of UTF-8 encoded text
  • 22. Response Limit  Maximum 1000 documents returned per page of search results  Maximum 10 suggestions returned per Suggest API request
  • 24. Two Operating There are two types of actions that can be executed against the Azure Search Service: • Index Management: This includes administrative tasks that are executed against a search service or search in • Document Actions: These actions query and manage the corpus for a given index
  • 25. Index  CREATE -> POST /indexes?api-version=2014-07-31-Preview  UPDATE -> PUT /indexes/[index name]?api-version=2014-07-31-Preview  DELETE -> DELETE /indexes/[index name]?api-version=2014-07-31-Preview  GET -> GET /indexes/[index name]?api-version=2014-07-31-Preview  LIST -> GET /indexes?api-version=2014-07-31-Preview
  • 26. Document  DML -> POST /indexes/[index name]/docs/index?api-version=2014-07-31-Preview  GET -> GET /indexes/[index name]/docs?[query parameters]  Lookup -> GET /indexes/[index name]/docs/[key]?[query parameters]  DML operating is use JSON column @search.action to declare action  "@search.action": "upload (default) | merge | mergeOrUpload | delete"
  • 27. Service name conventions  Must be between 2 and 15 characters  Must start with a letter or number, followed by zero or more letters, numbers or dashes ('-')  Must be lowercase  Consecutive dashes are not allowed  Second character cannot be a dash
  • 29. Index name conventions  Must be between 2 and 128 characters total  Must start with a letter or number, followed by zero or more letters, numbers or dashes ('-')  Must be lowercase  Consecutive dashes are not allowed
  • 30. Field name conventions  Must be between 1 and 128 characters  Can contain letters, numbers, and underscore ('_')  Must start with a letter  Cannot start with "azureSearch"
  • 31. Document key naming conventions  Can contain letters, numbers, underscore ('_'), dashes ('-'), or equal sign ('=')  Cannot start with an underscore ('_')  If you use compound keys and need a separator, we recommend using '-', '_', or '='.  If the keys in your source data contain characters other than the above, we recommend encoding them using a URL-safe variant of Base64. For example, in .NET you can use the HttpServerUtility.UrlTokenEncode method for this purpose.  Cannot contain backslash (''), slash ('/'), or dot ('.')  If you use compound keys and need a separator, we recommend using |.
  • 32. Tips  Increasing queries per second (QPS) or achieving high availability is done by adding replicas  high availability need last three replicas  Replicas almost used in application
  • 33. C# Azure Search  Using HttpClient  Header need have api-key  Use HttpRequestMessage send content  Data only use JSON  More example: https://azuresearchadventureworksdemo.codeplex.com/  You may need use NuGet console to updating MVC reference  Update-package -reinstall Microsoft.AspNet.Mvc

Hinweis der Redaktion

  1. Prototype features could change or disappear by the general release. In contrast, the features in a locked release are considered stable and will not change with the exception of small backward-compatible fixes and enhancements. We recommend against writing code that takes a dependency on prototype versions. Although each request has an api-version, we recommend that you use the same version for all API requests. This is especially true when new API versions introduce attributes or operations that are not recognized by previous versions. In broad terms, mixing API versions can have unintended consequences and should be avoided.
  2. http://msdn.microsoft.com/en-us/library/azure/dn798935.aspx
  3. http://msdn.microsoft.com/zh-tw/library/azure/dn798935.aspx
  4. Most service applications have a built-in need for more replicas rather than partitions, as most applications that utilize search can fit easily into a single partition that can support up to 15 million documents.
  5. Prototype features could change or disappear by the general release. In contrast, the features in a locked release are considered stable and will not change with the exception of small backward-compatible fixes and enhancements. We recommend against writing code that takes a dependency on prototype versions. Although each request has an api-version, we recommend that you use the same version for all API requests. This is especially true when new API versions introduce attributes or operations that are not recognized by previous versions. In broad terms, mixing API versions can have unintended consequences and should be avoided.
  6. http://msdn.microsoft.com/en-us/library/azure/dn798935.aspx
  7. http://msdn.microsoft.com/zh-tw/library/azure/dn798935.aspx
  8. Most service applications have a built-in need for more replicas rather than partitions, as most applications that utilize search can fit easily into a single partition that can support up to 15 million documents.