Fixed the Confluence search missing relevant pages (#1021)
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions

This commit is contained in:
Dominic Neuburg authored and GitHub committed 2026-10-04 12:50:52 +02:00
1 parent c4400c0ff6
commit 90c90910b3
4 files changed
+18 -10

No files matched your search

@@ -261,7 +261,14 @@ public sealed class ConfluenceSearchTool(WebPageRetrievalService webPageRetrieva
internal static Uri BuildSearchUrl(Uri baseUrl, string query, string? spaceKey)
{
var cql = $"text ~ \"{EscapeCqlValue(query)}\"";
//
// siteSearch is the field Confluence's own search box sends to this page: it finds the
// pages holding any of the words and ranks them by relevance. The text field, the one
// Atlassian documents, requires every word on the page and so missed pages the search
// box finds. Atlassian's CQL field reference does not list siteSearch, but the search
// page itself depends on it, and the REST API documentation uses it in its examples.
//
var cql = $"siteSearch ~ \"{EscapeCqlValue(query)}\"";
if (!string.IsNullOrWhiteSpace(spaceKey))
cql += $" and space=\"{EscapeCqlValue(spaceKey)}\"";