Skip to content

docs: update ACI docs for capability coupling and InvalidOptions - #246

Draft
Suraj Kumar (surajkumar-08) wants to merge 8 commits into
MicrosoftDocs:docsfrom
surajkumar-08:update-aci-api-changes
Draft

Suraj Kumar (surajkumar-08) wants to merge 8 commits into
MicrosoftDocs:docsfrom
surajkumar-08:update-aci-api-changes

Conversation

@surajkumar-08

Copy link
Copy Markdown

Summary

Updates AppContentIndexer (Semantic Search) documentation
for Windows App SDK 2.0.0-preview1 API changes.

What changed

docs/apis/app-content-search.md (overview)

  • Updated SDK version from "2.0 Experimental 4" →
    "2.0.0-preview1"
  • Added new Capability coupling rules section:
    • Suppressing TextLexicalRequirement now silently
      suppresses TextSemanticRequirement
    • Suppressing ImageSemanticRequirement now silently
      suppresses ImageOcrRequirement
    • Added table of contradictory combinations that
      return InvalidOptions status
    • Added WARNING callout about silent suppression
      with Default settings

docs/apis/app-content-search-tutorial.md (tutorial)

  • Added SDK version requirement (2.0.0-preview1+) to
    prerequisites
  • Added TIP callout about capability coupling rules
    with cross-link to overview

@surajkumar-08
Suraj Kumar (surajkumar-08) marked this pull request as ready for review April 2, 2026 06:51
@surajkumar-08
Suraj Kumar (surajkumar-08) marked this pull request as draft April 2, 2026 06:51

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — accurate improvement to Windows AI/ML documentation. Approved.

@GrantMeStrength

Copy link
Copy Markdown
Collaborator

Copilot /review

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed ✅ — Documentation improvement looks good.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the App Content Search (AppContentIndexer) documentation to reflect Windows App SDK 2.0.0-preview1 API behavior, and expands the tutorial with newer indexing/querying capabilities and additional end-to-end samples.

Changes:

  • Updates version guidance and enriches content/search result explanations (including OCR text query matches).
  • Adds/expands tutorial coverage for capability coupling, indexing status APIs, index lifecycle management, and intermediate/advanced scenarios.
  • Improves/updates sample snippets to align with newer API surface (for example, region-of-interest output for image matches).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
docs/apis/app-content-search.md Updates overview/version availability text and adds a capability coupling section (currently a link-out).
docs/apis/app-content-search-tutorial.md Adds prerequisites/version requirement, capability coupling guidance, OCR match handling, and multiple new scenario/sample sections.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/apis/app-content-search.md Outdated
Comment thread docs/apis/app-content-search.md Outdated

For guidance on how to integrate this feature into your app and use the ApplicationContentIndexer API, see: [Quickstart: App Content Search](app-content-search-tutorial.md)
For guidance on how to integrate this feature into your
app and use the ApplicationContentIndexer API, see:
Comment thread docs/apis/app-content-search.md Outdated
Comment on lines +67 to +71
## Capability coupling rules

Some index capabilities have dependency relationships.
For details on how `TextLexical`, `TextSemantic`,
`ImageOcr`, and `ImageSemantic` interact, see the
```

`QueryMatch` includes only `ContentId` and `TextOffset`/`TextLength`, not the matching text itself. It is your responsibility as the app developer to reference the original text. Query results are sorted by relevancy, with the top result being most relevant. Indexing occurs asynchronously, so queries may run on partial data. You can check the indexing status as outlined below.
`QueryMatch` includes only `ContentId` and `TextOffset`/`TextLength`, not the matching text itself. It is your responsibility as the app developer to reference the original text.For OCR query matches from indexed images, use AppManagedOcrTextQueryMatch.Fragment and AppManagedOcrTextQueryMatch.Subregion instead of text offsets. Query results are sorted by relevancy, with the top result being most relevant. Indexing occurs asynchronously, so queries may run on partial data. You can check the indexing status as outlined below.
Comment on lines +523 to +524
public async void WaitForIndexerIdleSample()
{
Comment on lines +733 to +734
public async void IndexCapabilitiesSample()
{

> [!TIP]
> When configuring index capabilities, be aware of
> [coupling rules](#capability-coupling-rules).
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 22eedff:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
❌Error Details

  • [Error: CannotMergeCommit] Cannot merge commit 22eedff985ef61d9e0c2a7089f46df534bc61e76 in branch update-aci-api-changes of repository https://github.com/surajkumar-08/windows-ai-docs into branch docs (commit 703c6ad9bec1a116f7665e74ca1a2450173a778d). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Updated the App Content Search tutorial to include additional features of the AppContentIndexer API, such as checking indexing status, updating and removing content, and deleting an index.
- Added detailed examples for managing indexing operations, including handling content reindexing and using content regions for structured data.
- Revised the capability coupling rules section for clarity and added a reference to the tutorial for detailed interactions between capabilities.
- Expanded the App Content Search overview to clarify the return types of text and image queries, including the handling of OCR-extracted text.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
… OCR typo

- Unwrap hard-wrapped prose in Prerequisites, TIP/NOTE blocks, and
  capability-coupling sections of both ACI docs
- Replace remaining ApplicationContentIndexer references with
  AppContentIndexer in app-content-search.md
- Add missing space after 'original text.' and wrap
  AppManagedOcrTextQueryMatch.Fragment/.Subregion in backticks

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit e959718:

✅ Validation status: passed

File Status Preview URL Details
docs/apis/app-content-search-tutorial.md ✅Succeeded
docs/apis/app-content-search.md ✅Succeeded

For more details, please refer to the build report.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 2b6a523:

✅ Validation status: passed

File Status Preview URL Details
docs/apis/app-content-search-tutorial.md ✅Succeeded
docs/apis/app-content-search.md ✅Succeeded

For more details, please refer to the build report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants