jaeksoft/opensearchserver

file:// URLs instead of SMB:// URLs ?

jebofponderworthy opened this issue · 2 comments

I have added a Filter to the default renderer, field "url", tested "Replace" as both "true" and "false", Filter Type "FACET_MERGE", containing this text:

casesensitive=false
regexp.1.find=smb://
regexp.1.replace=file://

and also tested this text:

casesensitive=false
regexp.1.find=smb
regexp.1.replace=file

but URLs were not changed. What is the simplest way to get OSS to output file:// URLs? Endpoint changes are not practical, and this is a Windows environment.

How about to use the "Fields" tab in the renderer?
I did it like this:

Field: uri
Url Pattern: smb://
Url Replace: file://

That should work like you want it.