Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SOLR search results - improving look and feel

Explorer ,
Nov 18, 2011 Nov 18, 2011

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?

962
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 18, 2011 Nov 18, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 18, 2011 Nov 18, 2011

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 18, 2011 Nov 18, 2011

Wouldn't the content also be found if  a CFM page which incorporates the include file is indexed?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 21, 2011 Nov 21, 2011
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources