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

cfsearch filename

Participant ,
Jul 24, 2014 Jul 24, 2014

Copy link to clipboard

Copied

Is there a way to retrieve just the document filename without the appended url path from a cfsearch?

Views

229

Translate

Translate

Report

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
Engaged ,
Jul 25, 2014 Jul 25, 2014

Copy link to clipboard

Copied

LATEST

Questions:

  • what, if anything, have you specified on the URLPath attribute of your cfindex?
  • what column are you referring to in your cfsearch results?   You might want to post a sample of what you get if you dump out a row from the results so we can see all the columns.

Couple of ideas.

  • You could use the custom1..4 attributes when doing the cfindex to populate the collection with those filenames.  These can then be referenced in your cfsearch results.
  • Or, you could use a simple regex to extract just the filename, or even something like listLast(url, "/")

Votes

Translate

Translate

Report

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
Documentation