AnsweredAssumed Answered

fts-alfresco search in multi tenant and with custom models

Question asked by pajumbo on Jul 8, 2019
Latest reply on Jul 9, 2019 by pajumbo

Hello everyone,


i'm using alfresco community Alfresco Community Edition 201901 GA in multi tenant.


starting with a custom model in the default tenant i had extended another custom model in the TenantA.


in the default tenant there is a custom model kd:cusmod  cm:content 's children.

in the TenantA there is a custom model afa:tenant_cusmod kd:cusmod 's children.


every tenant has a Site where the documents are saved.


trying to search with fts-alfresco in the browser nodes (to test the query for an application) i can't execute the search from the tenantA searching a value of the afa:tenant_cusmod  (afa:codfisc:'PLMsss333')


06080060 Request failed 500 /solr4/alfresco/afts?wt=json&fl=DBID%2Cscore&rows=100&df=TEXT&start=0&locale=it_IT&alternativeDic=DEFAULT_DICTIONARY&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON


in the solr.log there is this error:


2019-07-08 16:18:27,732 ERROR [org.apache.solr.servlet.SolrDispatchFilter] null:org.alfresco.service.namespace.NamespaceException: Namespace prefix afa is not mapped to a namespace URI


if I try to execute a search SITE:'TenantASite' the result don't contains the custom type.