[thelist] Coldfusion: Problem Indexing .cfm pages
Mark M
mark at safefrombees.com
Wed Oct 22 18:52:48 CDT 2003
> Is there a way that the index can be run that results in the CF code to
> be processed *first*? (Probably worded badly, but I hope you get my drift.)
The answer to that is, well, no.
However you can get verity to index database collections - (stolen from help docs)
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p64.htm
<cfquery name="book"
datasource="book">
select * from book
</cfquery>
<cfindex
collection="custom_book"
action="update"
type="custom"
body="description"
key="bookid"
query="book">
If you have both static pages and dynamic pages - you can create multiple verity indexes, and
search them all at the same time.
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-ptb.htm
<cfsearch
name="name"
collection="snippets,syntax,snippets"
criteria="example" >
Using these tools, there is no reason why you can't index all the content in your site.
Hope that helps!
Mark
------------------------------------------------------------------
mark at safefrombees.com
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]
Quoting Jason Sweeney <jason at designshift.com>:
> O lights in the darkness, I beseech your benevolent assistance...
>
> I've been hacking my way through setting up a Coldfusion search feature
> (using Verity) on the university faculty website I run and I've managed
> to create the collection and index the collection. So far so good.
>
> My problem arises from the fact that I have a number of pages where data
> is pulled from a database and processed onto the page (departmental
> information, scholarship information, etc.). It seems that when I index
> the .cfm pages in the site, they are indexed *without* the data being
> pulled through. This leaves me with an index that doesn't include all
> the programme information, scholarship information, etc. (Not
> particularily useful, eh?)
>
> (Also, on the pages which include <cfquery> statements, when I run a
> search that brings those pages up the title is blank and the summary
> includes the cf code! Even less useful, but obviously part of the same
> root problem).
>
>
> thanks,
>
> jason sweeney
>
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
>
>
More information about the thelist
mailing list