Stage 1, Explore the archive
At a glance
| Start state | End state | Fallback baseline |
|---|---|---|
| Access ready, no index yet | A schema sketch for the corporate index | None needed, nothing is created here |
Learning goals
- Read the corporate archive and identify its fields and record types.
- Decide which fields should be searchable, filterable, facetable, sortable, and retrievable.
- Sketch the index schema you will create in Stage 2.
Why it matters
The index schema decides what you can search, filter, group, and show. A few minutes of design here makes Stages 2 to 6 straightforward, and a good schema is the difference between "search that finds things" and "search that returns noise".
What you will build
A short schema sketch (on paper or in a scratch file): a table that lists every archive field and the search behavior you will give it. No Azure objects yet.
The five objects you are about to build
Before the first field decision, it helps to know where this is going. Azure AI Search is not one thing; it is a handful of small objects that hand work to each other. You build them in this order, one per stage:
| Object | Plain English | Stage |
|---|---|---|
| Index | The searchable copy of your data, and the schema that says how each field behaves. | 2 |
| Data source | A pointer to where the raw data lives. Here: a blob container. | 2 to 3 |
| Indexer | The job that reads the data source and writes documents into the index. | 2 to 3 |
| Skillset | Optional AI steps the indexer runs on the way through (entities, key phrases). | 5 |
| Knowledge source + knowledge base | The layer on top that turns a question into a grounded, cited answer. | 6 |
The index is the one you cannot get wrong cheaply: several field attributes cannot be changed after the index holds data, so a few minutes of design now is the whole point of this stage.
Knowledge-share outline
- What is in the archive: record types, branches, departments, dates, subjects, and content.
- How search-schema decisions (key, searchable, filterable, facetable, sortable, retrievable) map to fields.
- Why structured fields (branch, department, recordType, date) and free-text fields (subject, content) play different roles in search.
Lab steps
1. Open the sample archive
Read a handful of records without scrolling through the whole corpus. The sample is 15 records with exactly the same shape as the full archive:
- In the browser: open
data/corporate-archive.sample.jsonon GitHub. - If you cloned the repo:
data/corporate-archive.sample.json.
You do not need to clone anything for this stage, or any other.
Each record is one corporate artifact: a memo, a sales note, a complaint, a policy, and so on. A single record looks like this:
{
"id": "dm-0001",
"recordType": "internal-memo",
"branch": "Scranton",
"department": "Management",
"createdAt": "2026-01-08",
"subject": "Printer outage on the sales floor",
"content": "The shared laser printer in Scranton jammed repeatedly this week..."
}2. Note the record types and repeated values
Skim the sample and answer:
- Which
recordTypevalues appear (for exampleinternal-memo,sales-note,complaint,policy,hr-note,warehouse-note,branch-update,meeting-note,customer-call)? - Which
branchvalues repeat (Scranton, Stamford, Utica, and others)? - Which
departmentvalues repeat (Sales, Management, Warehouse, HR, Customer Service)?
These repeated values are what make good facets: a user can narrow results to one branch or one department.
3. Decide a role for every field
For each field, decide its search behavior. Structured fields describe or categorize a record; free-text fields carry the words people actually search for.
| Field | Role | Key | Searchable | Filterable | Facetable | Sortable |
|---|---|---|---|---|---|---|
id | structured | |||||
recordType | structured | |||||
branch | structured | |||||
department | structured | |||||
createdAt | structured (date) | |||||
subject | free-text | |||||
content | free-text |
4. Write your schema sketch
Check the boxes above the way you think each field should behave. There is no single correct answer, so let real questions from users guide your choices. For example:
- "I only want to see complaints" implies
recordTypeshould be filterable, and facetable so the UI can offer it as a browsable category. - "I only want to see Scranton" implies
branchshould be filterable and facetable. - "I only want to see Sales" implies
departmentshould be filterable and facetable. - "Show me the newest records first" implies
createdAtshould be sortable, and filterable if you also want date-range filters. - "Find records that mention 'printer'" implies
subjectandcontentshould be searchable. - Every document needs exactly one key, so check key for
idand onlyid.
Keep every field retrievable so you can show it in results; that attribute is not one of the checkboxes above because every field in this workshop stays retrievable.
Expected output
A schema sketch such as:
id: key, retrievablerecordType: filterable, facetable, retrievablebranch,department: filterable, facetable, retrievable, and also searchable (Stage 4 uses them as the keyword fields of a semantic configuration, which Azure only accepts on searchable fields)createdAt(asdate): filterable, sortable, retrievablesubject,content: searchable, retrievable
Checkpoint
archive-reviewed: You can describe the archive's fields and record types and have a schema sketch that names, for every field, whether it is key, searchable, filterable, facetable, sortable, or retrievable.
Fallback baseline
Nothing here creates an Azure object, so there is nothing to restore. If the discussion runs long, Stage 2 tells you exactly which attribute to set on each field, so you can adopt that schema and keep moving. The same schema is version-controlled at baseline/2/index.json.
Troubleshooting
- The sample looks small. That is intentional: it is a readable 15-record subset. The full archive (
data/corporate-archive.json) has the same fields and record types across 132 records, and that is what you index in Stage 2. - A field could be both filterable and searchable. That is fine; a field can carry several attributes. Reach for searchable on free text (
subject,content) and filterable/facetable on short categorical values (branch,department,recordType).branchanddepartmentend up with both, because Stage 4 names them in a semantic configuration and Azure requires those fields to be searchable.
Optional stretch
Sketch one extra facet you would add if the archive grew (for example a client field). This is not required for any later stage.
What we will not cover
- Vector or hybrid search fields; the two-hour path stays on lexical plus semantic ranking. The optional Stage 8 stretch adds them afterwards.
- Custom analyzers or tokenizers; the defaults are enough for this corpus.