Highlighted

cfsearch filename

Participant ,
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

161

Likes

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

cfsearch filename

Participant ,
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

162

Likes

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

Copy link to clipboard

Copied

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, "/")

Likes

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
Reply
Loading...
Jul 25, 2014 1