jeffcoughlin / farcrysolrpro

FarCry Solr Pro plugin Supports: Solr 3.5, FarCry 7.0+, 6.2+, 6.1.4+, 6.0.19+
http://jeffcoughlin.github.com/farcrysolrpro
Other
10 stars 8 forks source link

Files in alternate locations are not indexed #40

Closed seancoyne closed 12 years ago

seancoyne commented 12 years ago

we are currently creating the path to files and images like so:

if (ftType eq "image") {
  var filePath = application.fapi.getImageWebroot() & stRecord[field];
} else {
  var filePath = application.fapi.getFileWebroot() & stRecord[field];   
}

This assumes that the property holding the file stores it in the FarCry default location (/files for files, /images for images, etc). But, in the cfproperty tag for that field, the ftDestination could be set to an alternate location, ftSecure could be used which stores files in the securefiles dir under the project. These files would not be indexed because our code would not find them.