Query Builder Debugger - Query Question | Community
Skip to main content
Level 3
March 14, 2023

Query Builder Debugger - Query Question

  • March 14, 2023
  • 2 replies
  • 2459 views

Hi All,

 

I am trying to query a specific URL that's in both component configs and plain RTEs in a specific path but the query builder debugger can't seem to find results that I know are def. on the pages.

Can anyone help me with what I may be doing wrong with this query?

path=/content/(website)
fulltext=(FULL URL)
p.limit=-1

I'm a complete noob obviously so any help would be appreciated.

Kind Regards.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Rohan_Garg
Community Advisor
Community Advisor
March 14, 2023

Hi @roorue,

Syntactically, there is no issue with the query -

path=/content/we-retail

fulltext=pants

p.limit=-1

 

This will find all [nt:base] JCR nodes matching any %pants%

 

The issue might be with the URL itself. Can you share the URL you are looking for ?

Also, can you try using a subset of the complete URL ?

 

I tried the below query for a dummy search with https:// based URL- 

 

You can refer to the below cheat-sheet for quick reference -

https://github.com/paulrohrbeck/aem-links/blob/master/querybuilder_cheatsheet.md

RooRueAuthor
Level 3
March 14, 2023
RooRueAuthor
Level 3
March 14, 2023

@roorue - The URL pattern and syntax both are correct.

Best guess could be an inadvertent space when copy pasting the URL perhaps.

Can you try using a subset of the URL like /s/request-enquiry & see if still you get no result ?

 

Alternatively, you can add specific selectors to the query like property name to filter results instead of full text search.

To see if the node has property PROPERTY_NAME under path /content/(website)

path=/content/(Website)
type=nt:unstructured (sling:OsgiConfig for configuration nodes)
property=PROPERTY_NAME
property.value=www.support.amp.com.au/s/request-enquiry 

It's strange, I try these queries and I only get 1 result and that's to a page that has a subsection of this URL, not the full URL. I still can't get it to find the URL on the main page I know it's on and the test page I made for this. 

Could there be something that causes the query builder to not always be up-to-date with the aem content? 

We recently did a migration from prem to cloud.. the QB URL is the cloud environment URL.. just so confused why something that seems this simple isn't working as expected.

SivakumarKanoori
Community Advisor
Community Advisor
March 14, 2023

@roorue :

 

I am able to get the results as below.

 

 

You can tell , what is the url you are trying to get it.

Thanks,Siva