Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks Adam, I'll look into using a Verity Spider collection.