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:333498
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to