Hi!I'd like to add some custom facets to the Alfresco search. I've created an extension which allows to override already created facets:
<import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js">
<import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-footer.lib.js">
var facet = widgetUtils.findObject(model.jsonModel, "id", "FCTSRCH_FACET_DESCRIPTION");
facet.config.label = "Document type";
facet.config.facetQName = "{http://www.someComp.com/model/comp/1.0}personGroup";
But it is not the right way I think.The problem is that I cannot override the parent widgets, since they don't have ids (faceted-search.get.js). How do I manage to add a custom facet to the model?Another question is regarding parameter of the facet with name facetQName. In the same file (faceted-search.get.js) I met some strange syntax which I don't understand.Some examples:
facetQName: "{http://www.alfresco.org/model/content/1.0}creator.__.u",
facetQName: "{http://www.alfresco.org/model/content/1.0}modifier.__.u",
facetQName: "{http://www.alfresco.org/model/content/1.0}description.__",
What do these '.__.u' and '.__' mean?