Guides

Search scope, workspace isolation, and permission-aware results

Use one search spec on the public site and in the signed-in workspace app. Each search states what it searches, keeps one college in one workspace, and shows only results the signed-in role can view. The corrected filter logic section below governs every filter combination on this page where another page states a different fallback or count.

Comparison of search in the current pack

Read this table before you change a search field. The gap is scope and shared rules, not the search box itself.

Search surfaces in pack app-campus.site.1, with corpus, query rules, and isolation
SurfaceWhat it searches todayQuery rules todayCount and empty state todayWorkspace and permission today
Terminology page, in public/site.jsList entries on the terminology page only. The generic filter runs on that page only, because the guides index has its own filter.Exact word, word start at any length, word inside a word, and a spelling one letter off for words of four letters or more. No synonym list. Every typed word must match an entry.Showing count of entries shown. Empty title is No entries match that wording, with a Clear search action.Public entries only. No workspace record and no signed-in permission is involved.
Guides index, in public/guides/index.htmlThe guide cards on that page only, by title, description, and link text. It does not search full guide text.Exact word, word start for words of two letters or more, word inside a word for words of three letters or more, a spelling one letter off for words of four letters or more, and a synonym list such as enroll for admissions and registration. Role, stage, and topic filters also apply.Showing count of guides shown. Empty title is No guides match those filters, with Clear filters, up to three suggested guides, and a did you mean correction.Public guide cards only. The role filter helps a reader find a guide for a role. It does not grant or check permission in the app.
My Answers, in public/my-answers.htmlAnswers saved on the same device and browser only, by title, question, answer, and source title. It does not search guides, terminology, or workspace records.Plain substring in lower case. No fuzzy match and no synonym list.A status line states the saved count. The empty text is No saved answers match, with a suggestion to save an answer, clear the search, or choose another collection.Device only. No college workspace, no other person, and no server record is searched.
Signed-in app shell, in public/app/index.htmlNo search field is present in this slice. Screen files for workspace lists are not in this pack.No query rule is defined in this pack for a workspace search.No count and no empty state for a workspace search result list is defined in this pack.Undefined in this slice. The app kit requires every record to stay in one college workspace and a screen to show an action only when the assigned role covers it, with the server checking again.

What an identical query does today

  • Widget: the guides index finds guide cards that name the widget. Terminology finds entries that name the widget and website widget. My Answers finds only a saved title or answer that contains the word. The counts differ because the corpora differ, and no label on the search box states that difference.
  • Enroll: the guides index can match a card through the synonym list. Terminology has no synonym list, so the same word can find a guide and find no entry.
  • A single letter: terminology can match a word start at any length. The guides index needs two letters or more for a word start, so the same query behaves differently.
  • Session-only mode: a phrase in full guide text, such as the set retention and access guide, is not in the guides index card text. The guides index can miss a guide whose full text covers the phrase.
  • A saved answer title: My Answers can find it on the same device. The guides index and terminology cannot find it, because neither searches saved answers.

Unified scope labels to set on every search box

Set the label beside each search box, word for word. A reader should know the corpus before typing the first word.

Public guides

Search guides by title and task. This searches guide cards on this page only. It does not search full guide text, workspace records, or saved answers.

Terminology

Search entries on this page. This searches entries on this page only. It does not search guides, workspace records, or saved answers.

Saved answers on this device

Search saved answers on this device. This searches titles, questions, answers, and source titles you saved in this browser only. It does not search guides or workspace records.

Signed-in workspace

Search in this college workspace. Results show only records in this college that your role can view. Test and staff preview sessions are labeled as test and are excluded from counts.

Keep the page heading and any filter controls visible when the result list is empty, so the reader can change the filter. Show one empty state per list. Do not show an empty state and a populated list at the same time.

Unified query rules for the public site

Apply these rules to the terminology filter and the guides filter in one change, so the same typed words mean the same thing on both pages.

  1. Use one match rule

    Match a typed word when it is exact, when it starts a word of two letters or more, when it appears inside a word of three letters or more, or when it is one letter off a word of four letters or more. Every typed word must match for a result to show. A single letter matches by exact word only and never by word start.

  2. Use one synonym list or none

    Either publish one synonym list and use it on both public filters, or remove synonyms from both. Do not keep synonyms on one public filter only. Publish the list where the search hint states it. Until one shared list is published, the hint on each filter must state whether synonyms apply on that filter.

  3. Keep one timing and one address rule

    Filter after a short pause of 120 milliseconds while typing. Keep the search words in the page address as q on both pages. Do not add a new browser history entry for each keystroke. Clear search or Clear filters removes q and restores the full list.

  4. Keep one count and one empty state

    Show the count shown and the total in a status region, such as Showing 0 of 26 guides. Use the search icon, one title that names the empty list, one brief explanation that names the filter, and one primary Clear action. Keep suggested entries as plain links outside the empty state.

  5. Keep focus and keyboard behavior

    Keep focus on the search field when the empty state appears. Keep every control at least 44 pixels high, keep focus visible by keyboard, and stack the icon above the text on a phone.

Corrected filter logic specification for every filter combination

This section governs category, date, workspace, status, sort order, and pagination wherever they combine, on public search lists, on the weekly quality table, and on signed-in lists for Reports, Improve, Sources, Assistants, and Team. Where another page states a different fallback, count, or date basis, this section governs and that page is read as corrected to this section.

Principle: filters combine with AND and are never silently dropped

  • Every active filter narrows the same result set. Category, date, workspace, status, search words, and sort never widen a result set and never replace one another. A record must pass every active filter to appear.
  • A filter that is set to all, empty, or off passes every record. A filter that is set to a value passes only records that match that value. The applied value is echoed on screen or in the response so the reader can see what was applied.
  • Changing any filter, sort order, or page size returns to page 1. Recording a new outcome or saving a new record keeps the current filter, sort, and page size and clamps the page when the filtered total changes.
  • A status line after recording or searching never reports all recorded items as shown when a filter hides some. It reports the filtered count and the total recorded as two different numbers, as in the counts rule below.

Invalid and unknown values: fallback or empty, stated per filter

Filter, invalid or unknown value, and the corrected result
FilterUnknown or invalid valueCorrected result
Category: role, stage, topic, collection, assistant, channel, or signalA value not in the allowed list for that listFall back to all for that filter only, echo the applied value, and never return records from another category list. Other active filters still apply.
Date: week, date range, or dayA week or date that has no matching bucket, or a malformed dateShow no rows and total 0 for that date filter. Do not reset the date filter to all weeks and do not show the unfiltered list as if it matched.
Workspace: college workspaceA workspace the signed-in role cannot open, or a workspace from another collegeShow no rows. Never fall back to another college, never show totals from another college as if they were this college, and never open the record from a saved link.
Status: answer outcome, source status, or record stateA status not in the allowed list for that listFall back to all statuses for that filter only, echo the applied value, and keep test, unavailable, superseded, and handed off records in their own stated buckets and never merged into another bucket.
Sort: sort field and orderA sort field not sortable on that list, or an order other than asc or descFall back to the default sort field and default order for that list, echo the applied values, and keep the tie break in the rule below. Do not silently sort by a different field.
Page and page sizePage below 1, page past the last page, page size below 1, page size above 100, or a non-numberPage below 1 becomes page 1. Page past the last page clamps to the last page. Page size below 1 or a non-number becomes 5. Page size above 100 becomes 100. On screen the choices remain 5, 10, and 20.
Search wordsEmpty search, a single letter, or words with no match in the corpusEmpty search shows the full list. A single letter matches by exact word only. Words with no match show one empty state with 0 shown and the total, and keep focus on the search field. Suggested entries stay outside the empty state as plain links.

Combination matrix: what each pair of filters does

Filter combinations, with the corrected combined result
CombinationCombined resultCount shown
Category plus search wordsOnly cards or records in that category whose title, description, or stated fields also match every search word under the unified match rule. A category match never overrides a search word miss.Total after both filters, then rows on the page.
Category plus dateOnly records in that category whose submission or week bucket falls inside the date range. A record in the right category but outside the range does not appear, and a record in the range but outside the category does not appear.Total after both filters. The date basis in the next rule is stated beside the count.
Date plus sort plus pageFilter by date first, sort the filtered rows by the applied sort and order with the tie break below, then take the page. Sorting never changes which records pass the date filter.Total is the filtered count before pagination. Shown is rows on the current page only. Page count is total divided by page size rounded up, with minimum 1.
Workspace plus statusOnly records in the one selected college workspace with that status. Test and staff preview sessions are excluded from every status count and labelled as excluded. Unavailable stays separate from not answered. Superseded records are excluded from headline counts and labelled as superseded. Handed off stays in the handoff count only.Counts by college workspace only. System view shows counts grouped by workspace only and never returns question text, found in the workspace isolation section below.
Workspace plus category plus date plus status plus sortApply workspace on the server first, then category, date, and status, then sort with the tie break, then page. A person in another college cannot open any row that passes the other filters.Total after all filters, rows on the page, outcomes in the filter, and total recorded, as four separate numbers where the list records outcomes.
Search words plus workspacePublic search never searches workspace records. Signed-in workspace search filters on the server to one college before matching words. A matching word in another college never appears and never raises the count in this college.One count for one college and one list. Do not merge a public count with a workspace count.

Date basis, sort, and counts rules that apply to every combination

  • Date basis: signed-in lists use Monday 00:00 to the next Monday 00:00 in college local time for a week, and a range that starts at 00:00 on the start date and ends at 00:00 on the day after the end date in college local time. The public demo bucket is Monday 00:00 UTC and is labelled as UTC on screen. A UTC bucket is converted to college local time before it is counted in the signed-in app, and the time basis used is stated. Do not mix the two bases in one count.
  • Sort tie break: every sort ends with the record id in ascending order as a tie break, so a page boundary does not move a row between pages and page one plus page two together hold every filtered row once.
  • Counts: total means the count of rows matching every active filter before pagination. Shown means rows on the current page only. Outcomes in the filter means the measured outcomes inside the filtered rows. Total recorded means all outcomes recorded on the page or in the workspace, before filtering. A rate is never read without its numerator and denominator counts. When a denominator is zero, the screen shows no measured outcomes in this range, not zero percent.
  • Exports and downloads: export all filtered rows in sort order, not only the current page, and state the filtered total and the total recorded after download. A download never contains question text, search words, or student details beyond the stated fields for that export.
  • Empty result: keep the heading and filter controls visible, show one empty state per list, state 0 shown and the total, keep focus on the filter control, and keep suggested entries as plain links outside the empty state.

Workspace isolation for any workspace search

A workspace search result must never cross a college boundary, even when the words match.

  • Public search returns no question text, no answer text from a workspace, no saved item, no source record from a workspace, and no office contact detail from a workspace.
  • A signed-in search filters on the server to one college workspace at a time. A person in another college cannot open the result, and a client side filter alone is not enough.
  • System view shows totals across colleges only. It never shows question text, saved items, or source passages from a college, and it never joins records across colleges.
  • One search box shows one college, one list, and one count. Do not merge a public count with a workspace count, and do not rank public guides against workspace records.
  • Test and staff preview sessions are labeled as test, are excluded from headline counts, and do not appear as live results.

Permission-aware results in the signed-in app

Permission handling is a result rule, not a display hint. The role filter on the public guides index is discovery only and does not grant access.

What the role can view

Return only records the signed-in role can view for the task in that college. Reading full question text and exporting detail need a separate permission, and each view and each export is audit logged, as stated on the reports page.

What the screen shows

Show a button or action only when the assigned role covers that step. When the role does not cover the step, state the role that can do it and link to the relevant guide. Do not show a button that does nothing.

What the server checks again

Check permission on the server for every search request and every record opened from a result. A changed role takes effect on the next request, and a result from before the change is not opened again from a saved link.

What a search result shows

Show title, college, assistant, channel, date range, and college local time where the list uses them. Show an approved source title, source link, and last checked date for an answer result. Show no source for a not-known result, and show unavailable wording with no source when a check does not complete.

Caching for search results

Public search results are cached under the public guide row in Caching policy, because the guides index and terminology search public cards and entries only. Workspace search results are never cached by a shared cache, because a result depends on the college workspace and the role. A workspace search response uses private, no-store, no ETag, and Vary: Cookie, Authorization, as stated in Caching policy. Do not cache a search result page that was built for one workspace and serve it to another search.

  • Public guide and terminology search: Cache-Control public, max-age=3600, strong ETag, CDN cache on GET 200 only.
  • Signed-in workspace search: Cache-Control private, no-store, no ETag, no CDN cache.
  • A device search in My Answers has no server response and no HTTP cache rule.

Checks before you ship a search change

Run each check with the same query on each surface. If a check fails, fix it before you publish.

  • Widget on the guides index and on terminology: each page states its own corpus and its own count, and neither page claims to search the other corpus.
  • Enroll on both public filters: both use the same synonym rule, or neither uses synonyms, and the hint states the rule.
  • Single letter on both public filters: both use the same word start length, and neither matches on one letter alone by word start.
  • A phrase in full guide text: the guides index either states that it searches cards only, or the guide is found through a stated full text search. It does not silently miss the phrase.
  • A saved answer title in My Answers and on the guides index: My Answers finds it on the same device, and the guides index states that it does not search saved answers.
  • A workspace query in the signed-in app: results stay in one college, a person in another college cannot open them, and system view shows counts only with no question text.
  • A role without the step permission: the result and the action are not shown, and the screen names the role that can do the step with a link to the guide.
  • An empty result on each surface: one empty state shows, the count states 0 shown and the total, focus stays on the search field, and Clear restores the full list and clears q from the address.
  • Every filter combination in the corrected specification: category plus date, workspace plus status, and date plus sort plus page each narrow by AND, echo the applied values, and show total after filtering, rows on the page, and total recorded as separate numbers.
  • An unknown week or date shows no rows and total 0 and does not reset to all weeks. An unknown category, status, or sort falls back only for that filter and echoes the applied value. A page past the last page clamps to the last page.
  • A date count states its basis, Monday college local time in the signed-in app or Monday UTC on the public demo, and the two bases are never mixed in one count.

Follow Empty states for the shared layout, Read reports for counts by college and assistant, Set retention and access for who may view full questions and who may export, and Caching policy for Cache-Control, ETag, and CDN rules by surface.

Next guide

Keep empty states consistent wherever a list can be empty.