Hello everybody
Thanks to your help Christian, our full text queries yet work fine.
I still don't understand exactly what the problem was and why we got 500 internal errors.
Maybe a too heavy query and thus a memory problem ?
Anyway now with this kind of writing, the queries are completed :
declare function desanti:display-tags($collection, $dataType, $mode){ let $label := if($dataType = "subject") then "concepts" else "personnes" return <div class="{ $mode }"> <h6>{ $label }</h6> <span>{ for $term in $collection group by $term order by $term collation "?lang=fr" let $occurrences := count( ft:search('Desanti', $term)/..[local-name() = $dataType][ parent::*:controlaccess/ parent::*:c/ ancestor::*:dsc/ parent::*:archdesc/ parent::*:ead/ parent::document-node() ] ) return if($mode = "cloud") then ( <span><a style="font-size:{ $occurrences idiv 10 + 1 }em;padding:{ $occurrences idiv 10 }px;" title="{ $occurrences }" href="/restxq/desanti/{$label}/{$term}">{$term}</a></span> ) else ( <span class="{ $occurrences }"><a href="/restxq/desanti/{$label}/{$term}">{ $term }</a> ({ $occurrences }) </span> ) }</span> </div> };
Thanks a lot !!!
Maud