?
Solved

Veirty for pdf in MX

Posted on 2006-04-19
4
Medium Priority
?
136 Views
Last Modified: 2013-12-24
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?

0
Comment
Question by:JohnLucania
  • 3
4 Comments
 
LVL 2

Expert Comment

by:pharmacychoice
ID: 16493305
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
 

Author Comment

by:JohnLucania
ID: 16500202
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
 
LVL 2

Expert Comment

by:pharmacychoice
ID: 16503150
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
 
LVL 2

Accepted Solution

by:
pharmacychoice earned 2000 total points
ID: 16503162
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question