make browsing of file://z: - paths in index browser easier - this will

now show the root paths on a shared drive
pull/1/head
Michael Peter Christen 11 years ago
parent 8ac3e9f890
commit 75b5f24be4

@ -287,7 +287,13 @@ public class HostBrowser {
// get all files for a specific host from the index
StringBuilder q = new StringBuilder();
if (host != null) q.append(CollectionSchema.host_s.getSolrFieldName()).append(":\"").append(host).append("\"");
if (host == null) {
if (path.startsWith("file://")) {
q.append(CollectionSchema.url_protocol_s.getSolrFieldName()).append(":file");
}
} else {
q.append(CollectionSchema.host_s.getSolrFieldName()).append(":\"").append(host).append("\"");
}
if (pathparts.length > 0 && pathparts[0].length() > 0) {
for (String pe: pathparts) {
if (pe.length() > 0) q.append(" AND ").append(CollectionSchema.url_paths_sxt.getSolrFieldName()).append(":\"").append(pe).append('\"');

Loading…
Cancel
Save