Scénario de test & Cas d'usage
Data indexing and search functionalities.
Discover all actions of searchAnalyticsCreating a dataset of product descriptions and generating the initial term index required for the autocomplete build.
| 1 | DATA mycas.products; LENGTH product_desc $100; INFILE DATALINES truncover; INPUT product_desc $ &; DATALINES; |
| 2 | Wireless Bluetooth Headphones Black |
| 3 | Noise Cancelling Over-Ear Headphones |
| 4 | Smart 4K Ultra HD LED TV |
| 5 | Portable Waterproof Bluetooth Speaker |
| 6 | Gaming Laptop 16GB RAM |
| 7 | Digital SLR Camera Kit |
| 8 | ; RUN; |
| 9 | |
| 10 | PROC CAS; search.buildTermIndex / TABLE={name='products'} docId='product_desc' casOut={name='product_terms', replace=true}; RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | searchAnalytics.buildAutoComplete / index={name='product_terms'} casOut={name='product_autocomplete', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | TABLE.fetch / TABLE={name='product_autocomplete'} to=5; |
| 4 | |
| 5 | RUN; |
| 6 |
The action successfully processes the 'product_terms' table and generates the 'product_autocomplete' table. This output table contains optimized n-grams or term fragments ready to be queried by a search interface for instant suggestions.