Verity - displaying filesize in search results

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

  1. #1

    Default Verity - displaying filesize in search results

    We have a search engine using Verity. The search results page displays the
    title, linked filename, summary and rank (score). Is there a way to get the
    file size and display it (ie: tempfile.pdf, 56KB). I know if we were using a
    database we could have a column(filesize) which kept that info and then
    display it using the Custom 1 tag in the cfindex file (custom1="filesize"), but
    we are not using a database. Any suggestions or ideas on showing the file size
    will be great! Thanks.

    TBJ Guest

  2. Similar Questions and Discussions

    1. Pulling the Verity Collection Name from Results
      I am running CFMX 6.1 on Windows 2000 Server. I am trying to use Verity to full-text search several collections, one of which is a MS SQL 2000...
    2. Sending search results to a results page..with asp
      Please help.. very :confused; Ive setup 4 dynamic drop down boxes which populate themselves from my database, this all works fine..The last box...
    3. Verity Search and Rating of results
      Verity Search and Rating. When you use collections and Verity Search and several results in the result set have the same relevance score they are...
    4. Wierd Verity search results
      Using CFMX 6.1. I used the CF administrator to create and indes a collection of PDF files. The search works fine, but when I display the summary,...
    5. displaying search results using custom web publishing w/ CDML -- FM Pro ver 6 -- Win XP
      Hello all, I have built a search form to search for results based on the value in a single field and also a findall, two seperate submits. This...
  3. #2

    Default Re: Verity - displaying filesize in search results

    TBJ wrote:
    > We have a search engine using Verity. The search results page displays the
    > title, linked filename, summary and rank (score). Is there a way to get the
    > file size and display it (ie: tempfile.pdf, 56KB). I know if we were using a
    > database we could have a column(filesize) which kept that info and then
    > display it using the Custom 1 tag in the cfindex file (custom1="filesize"), but
    > we are not using a database. Any suggestions or ideas on showing the file size
    > will be great! Thanks.
    >
    If you're meaning you index files as opposed to database content, the
    Verity search results actually return the size of the document in a
    field called size, which is in bytes. You can just output that in your
    search results.

    Matt

    --
    Matt Woodward
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  4. #3

    Default Re: Verity - displaying filesize in search results

    Note there is a bug (soon to be addressed with a hotfix) in CFMX 7 that
    non-category searches return the file size in K not bytes. The hotfix will
    change it to bytes.

    But yes, CFMX 7 automatically returns the file size in the search results
    query.

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

  5. #4

    Default Re: Verity - displaying filesize in search results

    Thanks for the help. However, I get an error that the variable is not defined.
    Am I missing something. Is there something i need to do in the cf_infex file.

    Variable SIZE is undefined.

    The code is:
    <cfoutput query="XOSResults">
    <!---file size--->
    File size: #size#
    <br>

    </cfoutput>


    TBJ Guest

  6. #5

    Default Re: Verity - displaying filesize in search results

    This fix is in the cumulative hotfix #2 and above.

    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17883#MX7[/url]

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

  7. #6

    Default Re: Verity - displaying filesize in search results

    Check the XOSResults with cfdump to see what is or is not there.

    <cfdump var="#XOSResults#">

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl 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