Azioni generali:
Log-in
il Wiki: xwiki ▼: Indice dei Documenti
»
lo Spazio: XWiki ▼: Indice dei Documenti
»
la Pagina: SearchSuggestConfig
Ricerca
Azioni pagina:
Esporta ▼: Esporta come PDF Esporta come RTF Esporta come HTML
Altre azioni ▼: Anteprima stampa Vedi Sorgente
Welcome to XWiki » SearchCode » Search Suggest Configuration

# Search Suggest Configuration

Ultima modifica di Administrator il 2011/03/06 13:25
Commenti (0) · Allegati (1) · Cronologia · Informazioni

# 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ì

Tags:
Creato da Administrator il 2013/07/03 18:39

- Commenti (0)
- Allegati (1)
- Cronologia
- Informazioni

Copyright 2004-2026 XWiki
5.0.3