{
#if($autocomplete.size() > 0)
#set( $nameprop = $searcher.getDetail("name") )
  "total_count": $autocomplete.size(),
  "incomplete_results": false,
  "rows": [
	#foreach ($res in $autocomplete.getPageOfHits())
	#if( ${foreach.count} > 1 ),#end
	#set($label = $searcherManager.getValue($res,$nameprop,$context.getLocale()))
	#if(!$label)
		#set($label = $res.name)
	#end
	{"id": "$res.get('id')", "name": #jesc($label), "sourcepath" : "$!res.sourcepath"}
	#end
	]
#end
}
