Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

query for a text under apps in *.js file

Avatar

Level 8

Hi ,

 

I have text in *.js file  that is "rolloutWithWorkflow"  and i was trying to check if /libs/cq/search/content/querydebug.html  can show the file .I am trying this out as,I need to check few text if present under libs files

 

The query was  as below

 

type=nt:file
fulltext=rolloutWithWorkflow
nodename=*.js
path=/apps

 

It did not show the file name.Please let me know what should be the query to show the results of js file name

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 2

The Query seems to be correct already, 

I tried this on my local machine and could see the expected content.


type=nt:file
nodename=*.jsp
fulltext="when-config-successful"
path=/libs

If you say it doesn't show the file name , what else was the result ?

 

EG: 

http://localhost:4502/libs/cq/search/content/querydebug.html?_charset_=UTF-8&query=type%3Dnt%3Afile%...

View solution in original post

2 Replies

Avatar

Community Advisor

Hi,

Query Builder debugger or JCR queries does not search the content of the file. It looks for properties and values.



Arun Patidar

Avatar

Correct answer by
Level 2

The Query seems to be correct already, 

I tried this on my local machine and could see the expected content.


type=nt:file
nodename=*.jsp
fulltext="when-config-successful"
path=/libs

If you say it doesn't show the file name , what else was the result ?

 

EG: 

http://localhost:4502/libs/cq/search/content/querydebug.html?_charset_=UTF-8&query=type%3Dnt%3Afile%...