> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Breaking Changes: Discovery & Search

> What changes in search when you upgrade from Collate 2.0.8 to Collate 2.1, including the required reindex and stricter search access rules.

# Discovery & Search

Search keeps working for most users, but some searches and endpoints are now restricted. You must reindex after you upgrade from Collate 2.0.8 to Collate 2.1, and a few search endpoints are now stricter about who can call them.

## What Changed at a Glance

The following table summarizes the search changes in Collate 2.1.

| Change | Class | Who is affected |
| - | - | - |
| Reindex required after upgrade | Behavioral | Every deployment |
| Non-admin users can no longer search, sort, or filter on user emails | Breaking | Integrations and UI screens that search users |
| Search preview, raw document lookup, and reindex failure list are restricted | Breaking | Scripts that call these endpoints |
| Semantic (vector) search results are filtered by what the caller can view | Behavioral | Users of semantic search |
| Hybrid search weights swapped to favor keyword matching | Behavioral | Deployments that use semantic search with default weights |
| Search bar natural language queries no longer use credits | Behavioral | Admins who track AI credits |
| Default semantic score threshold lowered | Behavioral | Deployments that do not set their own threshold |
| Hybrid search results leave out column details | Behavioral | Clients of the hybrid search API |
| Context Center memory search is limited to approved memories for admins | Behavioral | Admins and users of Context Center memories |
| Search settings use new aggregation field names | Behavioral | Admins with saved search settings and clients that read them |
| Test case search results are masked for people who cannot view the table or column | Behavioral | Users and integrations that search test cases |
| Ranking can now boost by tags and certification | Additive | Search admins |
| New indexes and a column indexing setting | Additive | Search admins |
| Natural language search diagnostics endpoints | Additive | API clients and agent builders |

> [!NOTE]
>
> The Explore URL parameters, ordering model, and comma-separated values (CSV) export did not change between Collate 2.0.8 and Collate 2.1.

If you are upgrading from Collate 1.13, see the overview. For more information, see [Breaking Changes: 1.13 → 2.0](https://docs.getcollate.io/ai-2-0/release-2.0/breaking-changes/overview).

## Reindex After You Upgrade

> [!NOTE]
>
> **Behavioral.** Affects every deployment. Run a full reindex as soon as the upgrade finishes.

Collate 2.1 adds new search indexes and changes the layout of existing ones, so documents written by Collate 2.0.8 do not have the new fields. Until you reindex, some results are incomplete. Counts and filters are also affected.

The upgrade does the following:

* It sets the **Search Indexing** application to reindex all entities.
* It clears the record of earlier successful indexing runs, so the Applications page shows that indexing must be run again.

To reindex, follow these steps:

1. Click your profile icon.
2. Go to **Settings** > **Applications**.
3. Click **Search Indexing**.
4. Run it once with all entities selected.

You can also trigger the reindex from your own automation. For more information, see [Reindexing Search](https://docs.getcollate.io/ai-2-0/admin-guide/reindexing-search.md).

Reindexing also does the following:

* It builds the new `relationshipType` index and the new glossary term attribute mapping.
* It fills in the access-control fields that search now relies on. Documents written before the upgrade are filtered only on the fields they already carry. For more information, see [Search Applies the Same Access Rules as Entity Reads](#search-applies-the-same-access-rules-as-entity-reads).
* It builds newly enabled indexes, such as the following:
  * Metric groups
  * Data contracts
  * Governance automations
  * Metadata completeness
* It applies the renamed fields of the AI automation index. For more information, see [New Indexes and Settings](#new-indexes-and-settings).

> [!NOTE]
>
> If you turn on **Enable Roles & Policies in Search** after upgrading, run another reindex. Tag-based rules on table columns only take effect once the column documents have been rebuilt.

## Search Applies the Same Access Rules as Entity Reads

> [!NOTE]
>
> **Breaking.** Affects non-admin users, bots with restricted roles, and any client that searches users.

Collate already hides user email addresses from non-admin users when they open a user. Search now follows the same rule. The following applies to callers who are not admins or bots:

* Search results from the user index never include `email`.
* A search that can reach user documents is rejected with a `400 Bad Request` error if it does any of the following:
  * It refers to an email field.
  * It searches every field.
  * It runs a script.
  * It carries a filter that is not plain JavaScript Object Notation (JSON).
* Free-text searches over users keep working, but they no longer match on email addresses.
* Searching on a column called `email`, or on the tag `PII.Email`, is not affected.

The same applies to aggregations, sorting, and the export endpoints. A client that adds an email clause to every user search now gets an error for non-admin callers. Send that clause only when the caller is an admin or bot.

> [!NOTE]
>
> The Settings bot search adds an email clause. A non-admin who is allowed to view bots can see an error on that screen until the clause is sent for admins only.

Test case search results are also now masked for people who cannot view the underlying table or column.

## Restricted Search Endpoints

> [!NOTE]
>
> **Breaking.** Affects scripts and integrations that call these endpoints with a non-admin token.

| Endpoint | Collate 2.0.8 | Collate 2.1 |
| - | - | - |
| `POST /v1/search/preview` | Any authenticated user | Admins only |
| `GET /v1/search/get/{index}/doc/{id}` | Any authenticated user | Admins and bots only |
| `GET /v1/search/reindex/failures` | Any authenticated user | Admins only, and `limit` is capped at 1,000 |

The endpoints are restricted for the following reasons:

* The preview runs caller-supplied ranking settings that can slow the whole cluster.
* The document lookup returns raw documents without policy filtering.
* Failure records contain entity names and server error details.

Call these endpoints with an admin or bot token, or stop using them. Everyday search from the UI is not affected.

## Semantic Search Results Respect Permissions

> [!NOTE]
>
> **Behavioral.** Affects users of semantic (vector) search.

Semantic search now drops any hit whose source entity the caller is not allowed to view. Admins see all hits. Non-admins may see fewer results than in Collate 2.0.8 for the same query. Semantic search also now covers queries (saved Structured Query Language (SQL) queries) as a searchable entity type.

## Hybrid Search Weights Changed

> [!NOTE]
>
> **Behavioral.** Affects deployments with semantic search enabled.

The default split between keyword and semantic matching in hybrid search moves from 40% keyword and 60% semantic to 60% keyword and 40% semantic. The upgrade rewrites the stored weights only if they are still exactly the old defaults. If you chose your own weights, they are not changed.

To keep the old behavior, set `keywordWeight` to `0.4` and `semanticWeight` to `0.6` in the search settings after the upgrade. For more information, see [Search Configuration Settings](https://docs.getcollate.io/ai-2-0/admin-guide/search-configuration-settings.md).

## Search Bar Natural Language Queries No Longer Use Credits

> [!NOTE]
>
> **Behavioral.** Affects admins who track AI credits, budgets, and credit alerts.

The search bar turns a natural language question into filters and a query by calling a language model. In Collate 2.0.8, each of these calls counted against your AI credits. In Collate 2.1, Collate does not charge for the search bar, so these calls never use credits or count toward budgets.

The following changes apply:

* Search bar usage still appears in usage records under the search bar source, but it is marked as not billable.
* The upgrade marks past usage from the search bar as not billable. Past search bar query embeddings cannot be told apart from chat embeddings, so they keep counting.
* The search bar no longer falls back to keyword-only search when a credit budget is used up. It keeps its full natural language behavior.
* Chat and agents that call hybrid search on a user's behalf are still billed, including the embedding of the query.

The credit changes are described with Collate AI and credits. For more information, see [Collate AI & Credits](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/collate-ai-and-credits.md).

## Default Semantic Score Threshold Lowered

> [!NOTE]
>
> **Behavioral.** Affects deployments that do not set `COLLATE_SEMANTIC_SCORE_THRESHOLD`.

Hybrid search drops semantic hits that score below a threshold. The built-in default for `semanticScoreThreshold` moves from `0.7` to `0.625`. At the old value, some short queries returned no semantic hits at all.

Expect slightly more semantic matches for the same query. To keep the old behavior, set `COLLATE_SEMANTIC_SCORE_THRESHOLD` to `0.7`.

## Hybrid Search Results Leave Out Column Details

> [!NOTE]
>
> **Behavioral.** Affects clients that read column fields from hybrid search results.

Hybrid search results no longer include the `columns` field in the returned documents. Highlights no longer cover `columns.name` and `columns.description`. Highlighting still covers `name`, `displayName`, and `description`.

If your client reads column details from a hybrid search hit, fetch the entity with its own `GET` endpoint instead.

## Context Center Memory Search Is Limited to Approved Memories for Admins

> [!NOTE]
>
> **Behavioral.** Affects admins and users who search Context Center memories through hybrid search.

Hybrid search now limits admins to Context Center memories in the Approved status. An admin also sees their own memories in the Draft or Unprocessed status when the search filters ask for those statuses. No other user sees those memories.

A search that pins an entity also returns the memories attached to that entity, when the caller may read them.

## Ranking Can Boost by Tags and Certification

> [!NOTE]
>
> **Additive.** The ranking signals now allow `tags.tagFQN` and `certification.tagLabel.tagFQN`. The earlier signals still apply.

The earlier ranking signals are the following:

* Entity type
* Tier
* Status
* Usage
* Votes

> [!NOTE]
>
> **Behavioral.** The upgrade repairs saved term boosts that used an invalid certification field path, so boosts you configured in **Settings** > **Search** for a certification now apply. This can change result order for those assets. Update any automated test that checks the top result for a query.

## New Indexes and Settings

> [!NOTE]
>
> **Additive.** The reindex above fills all of these.

The upgrade adds the following items:

* Collate adds new indexes for metric groups, data contracts, and relationship types. It also adds indexes for governance automations and metadata completeness.
* The `enableColumnIndexing` setting is in the search settings, with a default of `true`. Turning it off stops indexing columns as standalone search documents and deletes the column search index. Turning it on creates the index again, and a reindex of tables fills it.
* The search settings report whether highlighting can be turned on for each searchable field. The UI only shows the highlight toggle where it can work.
* `GET /v1/search/entityTypes` lists every entity type that has a search index and requires permission to view Applications.
* Collate includes Korean (`KO`) search mappings for its own indexes. Collate uses them when `searchIndexMappingLanguage` is `KO`.
* In the AI automation index, the `batchSize` field is replaced by `maxEntitiesPerRun` and `processAllEntities`.

## Natural Language Search Diagnostics

> [!NOTE]
>
> **Additive.** Affects API clients and agent builders that call natural language search.

Two new endpoints help you see how Collate reads a natural language query:

* `GET /v1/hybrid/nlq/extract` returns the filters the language model chose, the filters that matched values in your catalog, and the query text left over. It does not run a search. Calling it uses the same model call as a search, so it records the same usage.
* `POST /v1/hybrid/nlq/canonicalize` takes a map of filter categories to raw values and returns the ranked catalog matches for each value. It makes no model call and runs no search.

Send the request body of the second endpoint as a non-empty JSON object. An empty body returns a `400 Bad Request` error.

## Search Settings Use New Aggregation Field Names

> [!NOTE]
>
> **Behavioral.** Affects admins with saved search settings and clients that read the aggregation settings.

In the search settings, the aggregation property `fieldsNames` is renamed to `fieldNames`. For API-endpoint aggregations, `fieldNames` is split into `requestFieldNames` and `responseFieldNames`. The upgrade repairs stored search settings. Update any script that reads or writes these properties, and run the reindex above so the new fields are built.

The visible effects in the UI are the following:

* The Topic search facet **Field Names** previously always returned no values. It now works.
* API endpoint search now offers separate **Request Field Names** and **Response Field Names** facets in place of the single one.

## Search API Changes

Some search API changes affect request and response formats. For more information, see [API & Schema](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/api-and-schema.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.