How to configure CQ 5.6 to index JavaScript files? | Community
Skip to main content
LinearGradient
Level 6
October 16, 2015
Solved

How to configure CQ 5.6 to index JavaScript files?

  • October 16, 2015
  • 6 replies
  • 1681 views

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.
Best answer by JustinEd3

I guess file a DayCare ticket.

6 replies

LinearGradient
Level 6
October 16, 2015

Could someone please explain if this is possible or not?

Adobe Employee
October 16, 2015

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

LinearGradient
Level 6
October 16, 2015

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.

Adobe Employee
October 16, 2015

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

LinearGradient
Level 6
October 16, 2015

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?

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

I guess file a DayCare ticket.