Veirty for pdf in MX

Does Verity work with pdf files well?  I have many of pdf files, and want to give users the search function.

For instance, if they type in "vacation" on the search box, the page will need to bring up all of the pdf files containing "vacation".  

Any suggestions?

JohnLucaniaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pharmacychoiceCommented:
Yes, just enter in a list of file extensions you would like to include in your cfindex tag or when you are setting up your index if you use the admin.  

<cfindex
   collection = "collection_name"
   action = "action"
   type = "type"
   title = "title"
   key = "ID"
   body = "body"
   custom1 = "custom_value"
   custom2 = "custom_value"
   custom3 = "custom_value"
   custom4 = "custom_value"
   category = "category_name"
   categoryTree = "category_tree"
   URLpath = "URL"
 ** extensions = ".PDF"  <-------------------here
   query = "query_name"
   recurse = "yes" or "no"
   language = "language"
   status = "status"
   prefix = "location of documents">
0
JohnLucaniaAuthor Commented:
great!

Do you have an example of cf pages with Verity for pdf?  I want to get a clearer picture how all pieces work together.
0
pharmacychoiceCommented:
This is an example of indexing.

<cfset extensions = ".cfm,.htm,.html,.pdf">
<cfset collection = "myCollection">

<CFCOLLECTION ACTION="create"
                    COLLECTION="#VARIABLES.collection#"
                    PATH="D:\CFusionMX\verity\collections"
                    LANGUAGE="English">

<cfquery name="qry_getArticles" datasource="myDB">
      SELECT      ID, TITLE, BODY, INSERT_DATE
      FROM      ARTICLEs
      WHERE      APPROVED      =      1
      and insertdate >= <cfqueryparam cfsqltype="cf_sql_date" value="#dateadd('d',-90,now())#">
</cfquery>

<cfindex action="update"
             collection="#VARIABLES.collection#"
             key="ID"
             type="Custom"
             urlpath="http://www.mysite.com"
             title="TITLE"
             query="qry_getArticles"
             body="BODY, TITLE"
             custom1="Article"
             language="English"
>
0
pharmacychoiceCommented:
Sorry, forgot the extensions! ;)

<cfset extensions = ".cfm,.htm,.html,.pdf">
<cfset collection = "myCollection">

<CFCOLLECTION ACTION="create"
                 COLLECTION="#VARIABLES.collection#"
                 PATH="D:\CFusionMX\verity\collections"
                 LANGUAGE="English">

<cfquery name="qry_getArticles" datasource="myDB">
     SELECT     ID, TITLE, BODY, INSERT_DATE
     FROM     ARTICLEs
     WHERE     APPROVED     =     1
     and insertdate >= <cfqueryparam cfsqltype="cf_sql_date" value="#dateadd('d',-90,now())#">
</cfquery>

<cfindex action="update"
           collection="#VARIABLES.collection#"
           key="ID"
           type="Custom"
           urlpath="http://www.mysite.com"
         extensions="#VARIABLES.extensions#"
           title="TITLE"
           query="qry_getArticles"
           body="BODY, TITLE"
           custom1="Article"
           language="English"
>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.