Judging by your paths I am going to guess that you are on Windows. You
might want to take a look at the verity spider. Just a thought.

Doug

Charles Chen wrote:

>Hi All. I'm a fairly new CF developer. I'm having weirdness indexing a website that is mostly a collection of XML pages. I'm really stumped. Can someone help me?
>
>If I create the verity collection via the colfusion administrator and add .XML to the extension types, it will properly create and index the site and the XML files will show up in my search.
>
>However, I need to use the programmatic method rather than the administrator because content on the site changes frequently and I want to schedule a CFM page to index the collection automatically at intervals. So, I programmed CFM pages to create a collection and then index it. In the cfindex, I have specified .xml as an extension type in addition to the standard HTML, CFM, etc. However, when I do a search the indexed collection only returns HTML files. even though XML and CFM has been declared as extensions to index as well. I tried using action="" and action="" I even tried action="" followed by action="" but no dice. Any idea why this is the case? I've cut and paste my code for creating an collection and for indexing it.
>
>Thank you for any generous help!
>
>- Charles
>
>Create collection action page (takes values from form):
>
><cfoutput>
><cfswitch _expression_=#Form.collectionaction#>
><cfcase value="Create">
><cfcollection action=""> >collection="#Form.CollectionName#"
>path="c:\cfusionmx\verity\collections\">
><p>The collection #Form.CollectionName# is created.
></cfcase>
>
><cfcase value="Repair">
><cfcollection action=""> >collection="#Form.CollectionName#">
><p>The collection #Form.CollectionName# is repaired.
></cfcase>
>
><cfcase value="Optimize">
><cfcollection action=""> >collection="#Form.CollectionName#">
><p>The collection #Form.CollectionName# is optimized.
></cfcase>
>
><cfcase value="Delete">
><cfcollection action=""> >collection="#Form.CollectionName#">
><p>Collection deleted.
></cfcase>
></cfswitch>
></cfoutput>
>
>Index collection page (takes collection name value from form):
>
><cfindex collection="#Form.IndexColl#"
>    action=""> >    extensions=".htm, .html, .cfm, .cfml, .xml"
>    key="c:\InetPub\wwwroot\www.vsarts.org\"
>    type="path"
>    urlpath="http://www.vsarts.org"
>    recurse="Yes"
>    language="English">
>
> <cfoutput>
>    The collection #Form.IndexColl# has been indexed.
> </cfoutput>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to