Copy link to clipboard
Copied
Our team has been in the process of moving our site search from Verity to Solr. We are running CF9. I am able to build the collections and search them but have run into a problem. Hopefully, someone can shed some light on a solution. We are using cflincludes which can be either cfm or html files. When the search results are displayed and clicking on one of the links that happen to be one of the included files, none of the css is applied which is usually displayed from the file containing the cfinclude. Is there a way to have Solr display the link to the file that contains the cfinclude with all the CSS displayed properly as oppopposed to the included file?
Copy link to clipboard
Copied
If I understand your problem correctly sometimes your Solr search results contain a file which is intended for use as an include rather than a stand alone web page. If this is the case then the solution would seem to be to structure your content such that include files are not contained within the directories indexed by Solr.
Copy link to clipboard
Copied
Thanks for the response. You understand the problem precisely. Unfortunately, the included file is the one that contains most of the content that we need to be indexed.
Copy link to clipboard
Copied
Wouldn't the content also be found if a CFM page which incorporates the include file is indexed?
Copy link to clipboard
Copied
No, the content is all contained on the included file. The cfm page is only 15-20 lines long which defines the css. This was done because the included page is displayed on both our internet and intranet site. Since the content was the same but the css is different for those two, in order to not duplicate the content, we went with the approach to define the content in one page and have it included into the other two which would display the css (i.e. banners, menus, etc.) depending on whether you were on the internet or intranet site.
The way I think that Solr is indexing is that it is really doing no work on the cfm page since there is no content at all. It is picking up the included file which contains all of the content. Then when the link is hit on the search display, it just displays the included file with no css.