Need Help with Replace Boolean Syntax
OK. One last item to cure with respect to applicant searches.
In CF 4.51 the collection for applicants was based on a huge folder containing .txt files.
In CF 2023 the colleciton is based on a huge folder containg: .doc, .docx, .pdf & .txt files.
The code that worked against the .txt file collection was.
****************************
values (#getCurrentSearchID.theSearchID#, #Replace( replace( URL, "/", "" ), ".txt", "" )#)
****************************
Basically, it stripped off the .txt part of the file name & the "/" that solr inserts into the value of URL> so that we are left with the file # to use in further processing.
I have tried the following against the folder with the 4 extensions mentioned above.
***************************
values (#getCurrentSearchID.theSearchID#, #Replace( replace( URL, "/", "" ), (".doc" or ".docx" or ".txt") ", "" )#)
***************************
CF is not happy with my (".doc" or ".docx" or ".txt") construct. Would very much appreciate any suggestions. Would like to avoid CFIF/CFELSE searching each URL returned to see which extension is involved before continuing to process the data, if that is even possible.
