Implementing Full Text in SQL Server

939 views

Published on

Presented by Steve Verschaeve.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
939
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
30
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Implementing Full Text in SQL Server

  1. 1. Click to edit Master title style Implementing Full-Text in SQL Server Steve Verschaeve TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  2. 2. Click to edit Master title style Who am I? Blog.steveverschaeve.be steve@sqlug.be @sql_lazywriter http://www.microsoft.com/belux/meet/ TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  3. 3. Click to edit Master title style Agenda • History and Editions • What Can I Do with Full-Text Search? • Architecture and components • Linguistics • Setup • FTS from a DBA perspective • FTS from a DEV perspective • Upgrade from earlier versions TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  4. 4. Click to edit Master title style History and Editions • Since version 7.0 • Major improvement in version 2008 • Supported editions – Enterprise – Business Intelligence – Standard – Web – Express with Advanced Services TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  5. 5. Click to edit Master titleFull-Text Search? What Can I Do with style • FTS Search Queries Search terms Predicates Function simple term CONTAINS and FREETEXT and CONTAINSTABLE FREETEXTTABLE prefix term CONTAINS and CONTAINSTABLE generation term FREETEXT and CONTAINS and FREETEXTTABLE CONTAINSTABLE proximity term CONTAINSTABLE thesaurus FREETEXT and CONTAINS and FREETEXTTABLE CONTAINSTABLE weighted term CONTAINSTABLE TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  6. 6. Click to edit Master title style Architecture and components • Full-Text engine • Word breaker • Filter Daemon host • Stemmer • Filter Daemon • Thesaurus Launcher • Filter • Full-Text index • Population • Full-Text catalog • Stopword • Stoplist TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  7. 7. Click to edit Master title style Linguistics • 50 languages (sys.fulltext_languages) • Each col is associated with LCID – Eg: LCID 1033 (U.S. English) – Eg: LCID 2057 (British English) • Language specific components: – Word breakers and stemmers – Stoplists – Thesaurus files – Filters TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  8. 8. Click to edit Master a feature Setup:Install as title style TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  9. 9. Click to edit Master levelstyle Setup: Instance title TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  10. 10. Click to edit Master titlelevel Setup on database style TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  11. 11. Click to edit Master title style Demo: FTS from a DBA perspective • Managing – Catalogs and Indexes – Stoplists – Filegroups – Crawling – Monitoring TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  12. 12. Click to edit Master titleDEV perspective Demo: FTS from a style • Writing Full-Text Queries using – CONTAINS – CONTAINSTABLE – FREETEXT – FREETEXTABLE TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  13. 13. Click to edit Master title style Upgrade from earlier versions • No discontinued full-text search features, some have been deprecated • Breaking Changes – Collation Changed for name Column in sys.fulltext_languages • Behavior Changes – New word breakers and stemmers TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  14. 14. Click to edit Master title style Upgrade from earlier versions • Upgrade paths – In-place upgrade – Detach & attach database – Backup and restore database – Copy Database Wizard TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  15. 15. Click to edit Master title style Upgrade from earlier versions • Upgrade options – Import indexed data – Reset catalogs – Full population TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  16. 16. Click to edit Master title style Upgrade from previous versions • From 2005 – Mismatches between query and full-text index • Rebuild full-text catalog • Full population of full-text index – Noise words replaced by stopwords – Modified noise words in 2005 are lost TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  17. 17. Click to edit Master title style Important URLs • Supported Forms of Query Terms • SQL Server Full Text Search Language Features (Hillary Cotter) • SQL Server Full Text Search Language Features, Part 2 (Hillary Cotter) • Deprecated Full-Text Search Features in SQL Server 2012 TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  18. 18. Click to edit Master title style Important URLs • TechNet Support Forums • Integrated Full-Text Search (OLTP)---a Technical Reference Guide for Designing Mission-Critical OLTP Solutions TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  19. 19. Click to edit Master title style Q&A steve@sqlug.be TechNet goes virtual© Microsoft Corporation. All Rights Reserved.
  20. 20. Click to edit Master title style Thank you TechNet goes virtual© Microsoft Corporation. All Rights Reserved.

×