Well, I'll be interested to see others' answers to your questions.

Number 1 is not too tough.  When you index your site using TYPE="PATH", the
KEY value is the fully qualified path name.  

You can then do a CFSearch looking for KEY containing your admin path, and
then loop through the result set calling CFINDEX with ACTION = DELETE and
KEY=<searchName>.KEY

(I haven't actually done this before, but it should work.)

Number 2 is more difficult, and it's an issue for every site with dynamic
pages.  You don't want to index the raw files, you want to index the
dynamically generated content.  You'll need a table of URLS.  The problem is
that this table can be quite large if you have a lot of pages which vary
with URL parameters.  If they don't, you could recursively use CFDIRECTORY
to get a list of your pages.  Another alternative, depending on the size of
the site, is to manually enter the URLs in a table.  

Then, you can query this table, use CFHTTP, and stuff each page in the
index, using TYPE="CUSTOM".  This also gives you the option of using the 2
custom fields; these could be used for security or better searches.

<grin> Of course, if you go this route, you can exclude your admin pages
from the process, so you don't even need number 1.

If you have only a small number of generated-content pages, try using
CFINDEX, TYPE="UPDATE" to insert only certain pages.

Good luck!

-----Original Message-----
From: Guy J. McDowell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 21, 2000 1:13 PM
To: CF-Talk
Subject: 2 Obstacles


Situation 1:
Using CFINDEX to create a collection for a search engine.
Problem:
It indexes site administration parts of the directory and returns them
on keyword searches. It would be ideal if these portions of the site
did not show at all, or were not indexed.
The directory structure, as established by our draconian host, cannot
be altered such that the admin directory resides outside the indexed
directory.
Goal:
To not index this directory somehow.
Resources:
An uncompromising host that knows not how to administer CFServer and
my own mortal CF powers. Budget (as usual) $0.

Is there a No Index type tag that I can put in the header of each
admin doc so that it is not picked up by the CFINDEX application?

Situation 2:
Used CFINCLUDE extensively in site to put .htm docs inside a .cfm
template
Problem:
.htm docs get indexed by CFINDEX in order for any content to be
searchable. That's good. Search returns direct path to the .htm doc
outside of the .cfm template. That's not good.
Goal:
To have all content searchable but to have the link lead to the parent
.cfm doc with the appropriate .htm doc included.
Resources:
Again, my merely mortal CF powers and some time.

Gee, I really hope I can contribute more than questions to this list
someday! ;0)

Yours In Conservation,

Guy J. McDowell,
Webmaster
The Ontario Federation of Anglers & Hunters
E-mail: [EMAIL PROTECTED]
Phone: (705) 748-6324 ext. 262

P.S.
www.OFAH.org -  The flagship site for the O.F.A.H. with NEW
Election2000 Section
www.AuctionForWildlife.com - Your chance to make your bid for
conservation.
www.EcoEd.org - an online adventure for kids in grades 1 through 8.
www.HuntingDog.org - Celebrating our Hunting Dog Heritage.
www.AHTV.com - Your online companion to the Angler and Hunter
Television show.
www.OHEP.net -  Where to find out and learn about the Ontario Hunter
Education Program.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to