Search for text embedded in a web link (content search) in a confluence page

Aswini Vayyala May 15, 2017

Hi,

I am able to get content search results when the link is added as text within the page.

eg: cql=space=test and text~"https://test.xyz.com.au/test1/xyz/test2"

But if the same link is embedded as link text in the web link of the page, the above CQL does not work. Is there a way to search the embedded content especially web link text?

1 answer

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2017

The links are not searchable within Confluence. If you only need to identify the links once for a project, please consider exporting the instance to XML and then using a text editor to find the links as described in How Do I replace all 'hard' links to my old Base URL.

 

Martin Cleaver
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2019

@AnnWorley is it still true that CQL can't find URL link values? I don't see it on https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/

I've been looking for a JAC ticket so I can vote.

Is it the case that a CQL function handler could be written, or is it that it would never be possible?

Like # people like this
vlad January 30, 2024

@AnnWorley a clarification would be much appreciated: I can confirm that the web search interface @ `http://.../wiki/search?text=<url-path-element>` finds the said path element inside URLs just fine, but the "equivalent" CQL `cql=text~<url-path-element>` does not. Pointers, ideas, thoughts? Thanks!

vlad January 30, 2024

Aha, it would appear that `siteSearch~<url-path-element>` does the trick, at least for now.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events