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

Stop CF8 Vertity collection indexing sql and CF code

New Here ,
Jul 07, 2010 Jul 07, 2010

Hi,

I have created a verity collection in CF8 to be used for a search with the CF administrator.  The problem is that the page code is being indexed as well as the page content eg I can see various sql select statements along with some ColdFusion tags coming back from the search along with the page content.

I can index dynamic page content without problems because I add to the collection with a query, it’s just the static page content that when indexed also gets any code within the page indexed.

Is there a way of hiding these code elements when I index the site pages so only the actual ‘body text’ is indexed and not any code?

Thanks,
Robin.

450
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
LEGEND ,
Jul 07, 2010 Jul 07, 2010

When you tell Verity to index the file system, that's precisely what it does: read the files & indexes them.  It does not make an HTTP request to the file, so the CFM templates are not executed.  You don't want to do this sort of indexing of your site, you want to use the Verity spider instead (which hits the site just like a human would).

--

Adam

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
New Here ,
Jul 07, 2010 Jul 07, 2010
LATEST

Thanks Adam, I'll look into using a Verity Spider collection.

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