Try this.

<cfcollection
       action="create"
       collection="pdf_files"
         path="[fully_qualified_path]">

<cfindex
    action="refresh" key="[file path]"
    urlpath="[web directory mapping i.e. 'http://www.mysite.com/pdf/ ]"
        extensions=".pdf" recurse="Yes/No"  >

Recurse will search subdirectories.

Then put this in your search form page.

<form action="search.cfm" method="post">
Search <input type="text" name="criteria" size="20">
       <input type="submit" value="Search!">
</form>

Then  search.cfm

<cfsearch collection="pdf_files" criteria="#form.criteria#" name="search"
type="simple">


<table>
   <cfoutput query="search">
    <tr>
           <td>Document&nbsp;&nbsp;</td>
           <td><a href="#URL#">#Key#</a></td>
           <td>Score</td><td>#NumberFormat(Score,"9999")#%</td>
        </tr>
        <tr><td>#Summary#</td></tr>
        <tr><td>&nbsp;</td></tr>
        </cfoutput>
</table>





-----Original Message-----
From: Paul Sinclair [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 21, 2000 1:41 PM
To: CF-Talk
Subject: Any good way to index/search pdf docs via CF


I've got about 1500 pdf documents that need to be indexed so as to be
searchable via a web search form. Can you/how do you index these things so
as to do a search on them? Can you create a Verity collection out of them
and then search the Verity collection?

Thanks for any pointers.

Paul Sinclair

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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