Thanks for the helpful info.  We were also advised to use Verity spider since 
it has the ability to index dynamic content as well.  Since some of our pages 
pull from cfincludes it was suggested that we use that instead.

How often does the collection update?  If I was to add a new page today, for 
example, would the collection automatically update the results or would I have 
to r-index the collection?

Thanks again

--- On Fri, 5/7/10, Jason Fisher <[email protected]> wrote:

From: Jason Fisher <[email protected]>
Subject: re: Setting up a Site Search
To: "cf-talk" <[email protected]>
Date: Friday, May 7, 2010, 10:48 AM


Verity is simple to use, I assume Solr is similar.  The instructions here are 
for CF8.

Create an Index of your files, first decide where you want the INDEX files:
<cfcollection action="CREATE" collection="mySearchCollection" path="#full path 
to the index directory#" />

Then point at the directory of files you want to put IN the index:
          <cfindex action="UPDATE" 
                collection="mySearchCollection" 
                type="PATH" 
                key="#full path to the static files#" 
                urlpath="#root URL that will connect links to the 
files#" 
                extensions=".doc,.htm,.html,.pdf,.ppt,.pps,.txt,.xls" 
                language="English" 
                recurse="Yes" 
                status="verityStatus"
            />


Once that runs, you will have results of the indexing available in the 
#verityStatus# struct, and you will have a collection on the server called 
'mySearchCollection'.  Note that the extensions param doesn't hit .cfc files.

To search the collection, it's about as easy:
        <cfsearch collection="mySearchCollection" 
            name="searchQry" 
            criteria="#search term or phrase#" 
            contextpassages="1" 
            status="searchStatus" 
            suggestions="Always" 
            type="INTERNET"
        />

>From there, just work through the CF docs.

----------------------------------------

From: "Blizzm" <[email protected]>
Sent: Friday, May 07, 2010 1:26 PM
To: "cf-talk" <[email protected]>
Subject: Setting up a Site Search

We have a site that is primarily static in nature and uses a custom tag for 
wrapping header and footer content.� None of the pages are indexed in a 
database, some are called in via cfincludes and a very few are called via AJAX.

We would like to create an search engine to find and display up-to-date content 
from the main sections of our site - obviously we wouldn't want cfcs, udfs, 
etc. to be displayed.� All we would want is the static content, PDFs, MS 
files, etc.

Is it possible to use Google Search to achieve this or are we better off using 
Verity?Solr?� From some of the posts I've read, there seems to be issues with 
Verity in displaying content, speed, lack of documentation / how-to's, etc.

This seems like a fairly standard type of task.� Any suggestions are 
appreciated.

Thanks





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333521
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to