Skip to main content
LinearGradient
Level 6
Oct 16, 2015 2:26 AM UTC
Solved

How to configure CQ 5.6 to index JavaScript files?

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
JustinEd3Accepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

I guess file a DayCare ticket.

6 replies

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

I guess file a DayCare ticket.

Translate
LinearGradient
Level 6
Oct 16, 2015 2:26 AM UTC

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?

Translate
Adobe Employee
Oct 16, 2015 2:26 AM UTC

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

Translate
LinearGradient
Level 6
Oct 16, 2015 2:26 AM UTC

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.

Translate
Adobe Employee
Oct 16, 2015 2:26 AM UTC

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

Translate
LinearGradient
Level 6
Oct 16, 2015 2:26 AM UTC

Could someone please explain if this is possible or not?

Translate