query for a text under apps in *.js file | Community
Skip to main content
srinivas_chann1
Level 7
January 3, 2020
Solved

query for a text under apps in *.js file

  • January 3, 2020
  • 2 replies
  • 1538 views

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

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

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%0D%0Anodename%3D*.jsp%0D%0Afulltext%3D%22when-config-successful%22%0D%0Apath%3D%2Flibs%0D%0A

2 replies

arunpatidar
Community Advisor
Community Advisor
January 5, 2020

Hi,

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

Arun Patidar
harishdevAccepted solution
Level 2
January 5, 2020

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%0D%0Anodename%3D*.jsp%0D%0Afulltext%3D%22when-config-successful%22%0D%0Apath%3D%2Flibs%0D%0A