Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Verity Indexing

    I have created and indexed a collection called Stds_Specs. The problem that I
    have know is that when one of the users uploads a file, I want verity to search
    for previous versions of that file, either alert the user and/or overwrite the
    file, then index that file without reindexing the whole collection to make the
    uploading process faster. I do not want to have a scheduled update of the
    collection.

    What I have is:

    For the Form Page:

    <cfform action="Upload_File_A.cfm" name="UploadForm"
    enctype="multipart/form-data" method="post" >
    <cfinput type="file" name="file_name" size="50"
    onkeypress="javascript:alert('To ensure the validity of the file being
    uploaded, please use the browse button.'); return false;"></td>
    <cfinput type="submit" value="Submit" name="In_Data" />
    </cfform>

    For the Action Page:

    <cffile
    action="upload"
    filefield="file_name"
    destination="Collections\Data"
    nameconflict="makeunique">
    <cfindex action="update"
    collection="Stds_Specs"
    type="file"
    key="Collections\Data">
    <cfoutput>Done</cfoutput>

    What am I doing wrong, or what can I do to make this better.

    Chikowski Guest

  2. Similar Questions and Discussions

    1. Verity No Longer Indexing
      Can anyone tell what the error "invalid style files" means. None of my indexing scripts seems to be working. They were working. Recently upgraded to...
    2. Verity Indexing Error--Please HELP!
      I'm trying to creat a verity collection via the ColdFusionMX7 administrator. It is currently running on a Server 2003 machine. When I try to index...
    3. CF5 Verity Indexing Issue
      Our CF5 based document management web application uses the search engine(Verity) is one of the key components in the system, we have customers...
    4. Verity Indexing and Searching
      I have used a process for searching Cold Fusion powered sites for years. It's quite simple, really: I create a set of Verity collections pertinent...
    5. MX 6.1 Verity Indexing
      When I try to index collections in the administrator using CF MX 6.1 Enterprise edition I don't get any error message or anything. All I get is a...
  3. #2

    Default Re: Verity Indexing

    You don't want to use CF's Verity functionality to check for a duplicate or
    previous version of a file. You want to use CFDIRECTORY/CFFILE for that.

    If I recall correctly, you'll want to use CFINDEX action=update to add new
    keys/documents to the collection. The action=refresh does a purge then a
    complete rebuild instead.

    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000278.htm[/url]

    serat Guest

  4. #3

    Default Re: Verity Indexing

    How would someone go about checking for an existing document with the CFDIRECTORY/CFFILE?
    Chikowski Guest

  5. #4

    Default Re: Verity Indexing

    FileExists(ExpandPath(yourfile)) Boolean yes or no

    <cfif FileExists(ExpandPath(yourfile))>
    <p>Your file exists in this directory. You entered
    the correct file name, #GetFileFromPath("#thisPath#/#yourfile#")#
    <cfelse>
    file not found
    </cfif>

    jorgepino Guest

  6. #5

    Default Re: Verity Indexing

    FileExists(ExpandPath(yourfile)) Boolean yes or no

    <cfif FileExists(ExpandPath(yourfile))>
    <p>Your file exists in this directory. You entered
    the correct file name, #GetFileFromPath("#thisPath#/#yourfile#")#
    <cfelse>
    file not found
    </cfif>

    I tried the above code as is, but it did not work for me. I got the error,
    "yourfile" is undefined. I pluged in "file_name" in for "yourfile" and it
    works, but it doesn't find the file that i know is there.

    What am i doing wrong?

    Chikowski Guest

  7. #6

    Default Verity Indexing

    I have setup a verity collection and indexed my website, but when you do a
    search on the site, the results that are returned when performing the search
    display the coldfusion code as the description rather than the page content. Is
    there a way of choosing what is returned as document description??

    also, when verity indexes doc files, the results that are returned is just a
    blank entry, i.e. no document title, no title text and no description. how do i
    get verity to search these properly.

    Thanks

    miketadd Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139