Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
TBJ #1
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
-
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... -
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... -
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... -
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,... -
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... -
mpwoodward *TMM* #2
Re: Verity - displaying filesize in search results
TBJ wrote:
If you're meaning you index files as opposed to database content, the> 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.
>
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
-
Tom Jordahl #3
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
-
TBJ #4
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
-
Tom Jordahl #5
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
-
Tom Jordahl #6
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



Reply With Quote

