query for a text under apps in *.js file

Avatar

Avatar

srinivas_chann1

Avatar

srinivas_chann1

srinivas_chann1

02-01-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Phoenics

Avatar

Phoenics

Phoenics

05-01-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%...

Answers (1)

Answers (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840
Arun_Patidar
MVP

04-01-2020

Hi,

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