Search Suggest Configuration
Administrator
2011/03/06 13:25

Indice
Search Suggest 	 # 
Sources 	 # 

Search Suggest
activated: Sì

Sources
A suggest source is a URL that takes 3 parameters: query, input and nb. The query parameter must contain a __INPUT__ placeholder. This URL must process the query with the given user input and return the result in the XML format expected by the suggest component.
 Name 	 URL 	 Query 	 Results Number 	 Icon 	 Highlight matches 	 Activated	
 $services.localization.render(’platform.search.suggestSourceDocumentName’) 	 $xwiki.getURL(’XWiki.SuggestLuceneService’, ‘get’, ‘outputSyntax=plain’) 	 
name:INPUT* OR web:INPUT*
  	 3 	 $xwiki.getSkinFile(’icons/silk/page_white_text.png’) 	 Sì 	 Sì	
 $services.localization.render(’platform.search.suggestSourceDocumentContent’) 	 $xwiki.getURL(’XWiki.SuggestLuceneService’, ‘get’, ‘outputSyntax=plain’) 	 
INPUT*
  	 3 	 $xwiki.getSkinFile(’icons/silk/page_white_text.png’) 	 No 	 Sì	
 $services.localization.render(’platform.search.suggestSourceAttachmentName’) 	 $xwiki.getURL(’XWiki.SuggestLuceneService’, ‘get’, ‘outputSyntax=plain’) 	 
filename:INPUT* AND type:attachment
  	 3 	 $xwiki.getSkinFile(’icons/silk/attach.png’) 	 Sì 	 Sì	
 $services.localization.render(’platform.search.suggestSourceAttachmentContent’) 	 $xwiki.getURL(’XWiki.SuggestLuceneService’, ‘get’, ‘outputSyntax=plain’) 	 
ft:INPUT* AND type:attachment
  	 3 	 $xwiki.getSkinFile(’icons/silk/attach.png’) 	 No 	 Sì	
 $services.localization.render(’platform.search.suggestSourceBlogPost’) 	 $xwiki.getURL(’XWiki.SuggestLuceneService’, ‘get’, ‘outputSyntax=plain’) 	 
INPUT* AND object:Blog.BlogPostClass
  	 3 	 $xwiki.getSkinFile(’icons/silk/page_white_picture.png’) 	 No 	 No	
 $services.localization.render(’platform.search.suggestSourceUsers’) 	 $xwiki.getURL(’XWiki.SuggestLuceneService’, ‘get’, ‘outputSyntax=plain’) 	 
INPUT* AND object:XWiki.XWikiUsers
  	 3 	 $xwiki.getSkinFile(’icons/silk/user.png’) 	 No 	 Sì