Scénario de test & Cas d'usage
Data indexing and search functionalities.
Discover all actions of searchAnalyticsCreation of a dataset containing popular book titles.
| 1 | DATA casuser.books; LENGTH title $ 100; INFILE DATALINES dsd; INPUT title $; DATALINES; |
| 2 | The Great Gatsby |
| 3 | Introduction to Algorithms |
| 4 | Clean Code |
| 5 | DATA Science for Business |
| 6 | The Pragmatic Programmer |
| 7 | ; RUN; |
| 1 | /* Data loaded in data_prep step */ |
| 1 | PROC CAS; |
| 2 | searchAnalytics.buildTermIndex / |
| 3 | TABLE={name='books'} |
| 4 | casOut={name='book_index', replace=true} |
| 5 | fields={'title'} |
| 6 | tokenize=true |
| 7 | language='ENGLISH'; |
| 8 | RUN; |
The 'book_index' table is successfully created. It contains individual terms from the book titles (e.g., 'Gatsby', 'Algorithms', 'Science'), tokenized according to English linguistic rules.