Guides

Workspace search ranking: title before body, one college only

Use this ranking rule for global search in the signed-in app across questions, answers, topics and tags, and workspaces as scope. Scope comes first, then matching, then ranking. A body mention never outranks a title match, and a title match in another college never appears and never raises the count.

What the pack shows today

Read this table before you change a search field. The gap is ranking and an undefined workspace rule, not the search box itself.

Search surfaces in this pack, with matching and ranking today
SurfaceWhat it searchesMatching and ranking today
Public guides indexGuide cards on that page only, by title, description and link text. It does not search workspace records.Exact, word start at 2 or more letters, word inside at 3 or more, one letter off at 4 or more, every typed word must match. Title matches rank first.
My Answers on this deviceSaved answers on the same device only, by title, question, answer and source title.Plain substring of the whole phrase. Title, question and answer body carry the same weight, so a body mention can sit above a title match.
Signed-in app shell in this sliceNo search field is present in public/app/index.html in this slice. Screen files for workspace lists are not in this pack.No workspace search rule is defined in this pack. Requested capabilities lists workspace search as not available today.

The rule below fills the undefined workspace rule using the same match rule as the public filters. It adds no new role, no new permission, and no new tenancy path. It states how matching, ranking and counting must work when the signed-in search ships.

The ranking rule, in order

Apply every step in this order on every signed-in workspace search request.

  1. Step 1: Scope first, on the server

    Filter to one college workspace from the signed-in session before matching, ranking or counting. Then apply the role check for each record. Exclude test and staff preview sessions and label them as excluded. A client side filter alone is not enough. A record from another college is removed at this step, so it cannot rank, appear, or raise the count at any later step.

  2. Step 2: Match with the unified rule

    Every typed word must match. A typed word matches when it is exact, starts a word of 2 or more letters, appears inside a word of 3 or more letters, or is one letter off a word of 4 or more letters. A single letter matches by exact word only. Search words, topics and tags, question titles, answer titles and answer bodies use the same rule, so a title and a body are compared in the same way before ranking separates them. A shared synonym list ships with this match rule. The list is the same list used in My Library, with enroll for admissions, application, register and registration, and password for account, access and reset.

  3. Step 3: Rank by tier, title and tag before body

    Place each matched record in the first tier that fits, from the table below. A record in a higher tier always sits above a record in a lower tier. Repeated hits in a body add no extra tier and no extra points, so a body with many repeated words cannot pass a title record.

  4. Step 4: Break ties in a stable order

    Within one tier, order by updated time descending, then by record id ascending. The id tie break keeps a page boundary stable, as in List pagination, sorting, and filtering. Page one plus page two then hold every matched record once.

  5. Step 5: Count after scope and match, before paging

    Total is the count of records that passed scope, role and match, before ranking and before pagination. Shown is rows on the current page only. A title match in another college is not in total, in shown, or in any tier, because it was removed in Step 1.

  6. Step 6: Label the matched field on each result

    Show Matched in title, Matched in tag, or Matched in answer beside each result, with the college, assistant, channel and date range where those filters apply. The label states why the record ranked where it did, so a reader can tell a title match from a body match at once.

Rank tier by matched field, with the label shown on the result
TierMatch that places a record in this tierLabel on the result
1Every typed word is exact in the question or answer title.Matched in title
2Every typed word is exact in the title or in topics and tags, and at least one word is exact in a tag.Matched in tag
3Every typed word matches the title by word start, word inside, or one letter off.Matched in title
4Every typed word is exact in the answer body.Matched in answer
5Every typed word matches the answer body, or matches across title, tags and body, by word start, word inside, or one letter off.Matched in answer

Workspaces are scope, not a rank tier. A workspace name selects the one college searched in Step 1. It is shown as the scope label and as the college header, and it never ranks one college record above another inside the same search.

Try the ranking on this page

Example only. Nothing entered here is sent to a server and nothing changes college records. The records below are example records on this page only. The workspace choice in this example stands for the confirmed college at the top of the signed-in app.

Search example records

In the signed-in app this choice is the confirmed college name. It is never free text that can be typed to reach another college.

Type a word or phrase. Every typed word must match. Synonym expansion ships. Try add deadline, then switch the workspace above and search again. Try enroll to find an admissions record by synonym.

Showing 0 of 0 in Example College

    Checks before you ship a search change

    Run each check in a test college workspace with test recipients. If a check fails, fix it before you publish.

    • Search add deadline in Example College in the tool above. Confirm the record with add deadline in the title is first, the body-only records follow in tier order, and the count is 3 of 5 in that workspace, not 4.
    • Search the same words after switching the workspace to Other Example College. Confirm only the other college title record appears, with a count of 1 of 1, and no Example College record appears.
    • A body-only record that repeats the search words many times stays below every title and tag record for the same query.
    • A tag match sits below a title exact match and above a body exact match. A title partial match sits above a body exact match.
    • Within one tier, a newer updated record sits above an older one, and the id tie break keeps page one plus page two free of repeats.
    • A record the signed-in role cannot view is absent from the list and from the total, and the screen states the role that can view it instead of showing a button that does nothing.
    • An empty result shows one empty state, states 0 shown and the total for that college, keeps focus on the search field, and Clear search restores the full scoped list.
    • Each control is at least 44 pixels high, focus stays visible by keyboard, and the count status is announced once by the status region.
    • Search enroll in Example College and confirm the admissions record is found by synonym, with count including the synonym match.

    Follow Search scope for scope labels, filter logic and caching, List pagination, sorting, and filtering for total and page rules, and Read reports for counts by college and assistant.

    Next guide

    Keep empty states consistent wherever a list can be empty.