Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

verity results question

Participant ,
Oct 08, 2008 Oct 08, 2008
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>
368
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 08, 2008 Oct 08, 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\wwwroo...
Translate
Explorer ,
Oct 08, 2008 Oct 08, 2008
Try it like this and see if that works
<cfoutput query="FindItems">
<a href="#url#" TARGET="_blank">#title#</a>
</cfoutput>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 08, 2008 Oct 08, 2008
LATEST
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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources