Actually the custom file type extensions which we add to the central admin will be available in the file types when we preview the refinement panel.
But the filetypes what we see is different, we see user friendly names for that.
Say for xlsx we see Excel and for ppt we see PowerPoint and so on.
So i checked the display template for the refinement panel.
In the filter_default.html, i Found a function for mapping the extensions.
function mapResultType(listData)
{
var map = { };
map[Srch.U.loadResource("rf_ResultTypeRefinerValue_MSAccess")] = {
"RefinerName": "FileType",
"RefinementValues": ["accdb", "accdc", "accde", "accdr", "accdt"]
};
map[Srch.U.loadResource("rf_ResultTypeRefinerValue_AdobePDF")] = {
"RefinerName": "FileType",
"RefinementValues": ["pdf"]
};
.....
.....
map[Srch.U.loadResource("rf_ResultTypeRefinerValue_MSExcel")] = {
"RefinerName": "FileType",
"RefinementValues": ["odc", "ods", "xls", "xlsb", "xlsm", "xlsx", "xltm", "xltx", "xlam"]
};
map[Srch.U.loadResource("rf_ResultTypeRefinerValue_Image")] = {
"RefinerName": "FileType",
"RefinementValues": ["bmp", "jpeg", "png", "tiff", "gif", "rle", "wmf", "dib", "ico", "wpd", "odg"]
};
.....
.....
}
Towards the last i added a mapping for Video also as below:
map["Video File"] = {
"RefinerName": "FileType",
"RefinementValues": ["wmv","avi","mp4","mpeg"]
};
And now i am able to see the video file type in refinement panel when i have videos in the serach result.