AnsweredAssumed Answered

Custom facet - Search - Alfresco 5.0.a

Question asked by streetturtle on Jan 14, 2015
Latest reply on Jan 15, 2015 by streetturtle
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 = "{}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: "{}creator.__.u",
facetQName: "{}modifier.__.u",
facetQName: "{}description.__",

What do these '.__.u' and '.__' mean?