Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

How to configure CQ 5.6 to index JavaScript files?

Avatar

Level 7

Right now content of CSS and JS files are not indexed and are not searchable.

Is there a way to add them to the index and make their content searchable?

1 Accepted Solution

Avatar

Correct answer by
Employee

I guess file a DayCare ticket.

View solution in original post

6 Replies

Avatar

Level 7

Could someone please explain if this is possible or not?

Avatar

Employee

CSS and JS files are indexed currently. All files are indexed by default. What search interface are you using? What search specifically is failing?

Avatar

Level 7

Hi Justin,

I am using the Search field of CRXDE:

[img]http://i.imgur.com/2LYuyBX.png[/img]

But searching for content inside JS is not returning them. For example searching for "maxRowExcl" I expect "/libs/cq/ui/rte/core/CellSelection.js" to appear in search results but it doesn't.

However searching, for example, for "snip off all trailing slashes" returns "/libs/cq/replication/components/treeactivation/POST.jsp" as expected.

So somehow contents of JS/CSS files are not being indexed it seems.

Avatar

Employee

Interesting. I'm pretty sure this used to work. Sorry for the bad information.

Avatar

Level 7

No problem Justin. Should I raise a ticket with DayCare or would you be able to share a solution for indexing JS/CSS files here?

Avatar

Correct answer by
Employee

I guess file a DayCare ticket.