Skip to content

Commit 37a8ad3

Browse files
authored
improvement(search): steer Confluence native queries to siteSearch for topic lookups (#9742)
* improvement(search): steer Confluence native queries to siteSearch for topic lookups * improvement(search): describe text ~ as a fuzzy word match and show phrase syntax
1 parent 29a75dd commit 37a8ad3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/sim/lib/sim-search/live/providers.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ export const LIVE_SEARCH_PROVIDERS = {
185185
confluence: {
186186
guide: {
187187
syntax:
188-
'CQL: text ~ "term", title ~ "term" (title ~ "win*" for a prefix), type IN (page, blogpost) and space = KEY (quote keys starting with a digit), joined with AND/OR/NOT and parentheses; add ORDER BY lastmodified DESC only when recency matters more than relevance.',
188+
'CQL: siteSearch ~ "a few words" is Confluence relevance search and ranks pages about the topic first, so use it for topic, acronym and how-to lookups. text ~ "term" and title ~ "term" (title ~ "win*" for a prefix) match pages containing those words or their variants without that ranking, so keep them for a specific identifier or term; text ~ "\\"exact phrase\\"" matches a phrase. Combine with type IN (page, blogpost) and space = KEY (quote keys starting with a digit) using AND/OR/NOT and parentheses; add ORDER BY lastmodified DESC only when recency matters more than relevance.',
189189
scope:
190190
'creator = currentUser(), contributor = currentUser(), mention = currentUser() and space = KEY. CQL has no project field; the separate native project field takes an Atlassian site cloud ID.',
191-
example: 'type IN (page, blogpost) AND space = ENG AND text ~ "roadmap"',
191+
example: 'type IN (page, blogpost) AND siteSearch ~ "deployment freeze process"',
192192
avoid:
193-
'starting the query with a negative clause (NOT, !=, !~ or NOT IN), which CQL rejects; lead with a positive clause such as type IN (page, blogpost).',
193+
'ORing several text ~ clauses for a topic, which ranks pages sharing one common word first (put the words in one siteSearch instead), and starting the query with a negative clause (NOT, !=, !~ or NOT IN), which CQL rejects; lead with a positive clause such as type IN (page, blogpost).',
194194
},
195195
requiresEveryTerm: true,
196196
previewText: previewConfluence,

0 commit comments

Comments
 (0)