Skip to main content
Inspiring
October 8, 2008
Answered

verity results question

  • October 8, 2008
  • 2 replies
  • 393 views
Running CFMX7, my verity collection works great, but when I output the results below I get the whole server path to the file instead of just the file name. Anyone know why?

<cfoutput query="FindItems"><a href="#FindItems.url#" TARGET="_blank">#FindItems.title#</a></cfoutput>
    This topic has been closed for replies.
    Correct answer Newsgroup_User
    unless you are using vspider to crawl and index your site, Verity will
    treat the files as files on disk, not as webpages of your site. it will
    even index the source code of your pages, not the rendered output.

    you could try using replace() function on the #url# var to replace the
    relevant part of the file path with corresponding web path
    http://www.yourdomain.com/ ...

    for example, if the url returned is "C:\Inetpub\wwwroot\somesite\index.cfm
    you could do
    #replacenocase(url, "C:\Inetpub\wwwroot\somesite\",
    " http://www.somesite.com/")#

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

    2 replies

    Newsgroup_UserCorrect answer
    Inspiring
    October 9, 2008
    unless you are using vspider to crawl and index your site, Verity will
    treat the files as files on disk, not as webpages of your site. it will
    even index the source code of your pages, not the rendered output.

    you could try using replace() function on the #url# var to replace the
    relevant part of the file path with corresponding web path
    http://www.yourdomain.com/ ...

    for example, if the url returned is "C:\Inetpub\wwwroot\somesite\index.cfm
    you could do
    #replacenocase(url, "C:\Inetpub\wwwroot\somesite\",
    " http://www.somesite.com/")#

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    Known Participant
    October 8, 2008
    Try it like this and see if that works
    <cfoutput query="FindItems">
    <a href="#url#" TARGET="_blank">#title#</a>
    </cfoutput>