General Actions:
Log-in
Register
Wiki: Main wiki ▼: Document Index
»
Space: XWiki ▼: Document Index
»
Page: SearchSuggestConfig
Search
en
Page Actions:
Export ▼: Export as PDF Export as RTF Export as HTML
More actions ▼: Print preview View Source
manager.homepage.title » SearchCode » Search Suggest Configuration

# Search Suggest Configuration

Last modified by Administrator on 2012/03/22 12:08
Comments (0) · Annotations (0) · Attachments (1) · History · Information

# Search Suggest

activated: Yes

## 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
--- | --- | --- | --- | --- | --- | ---
Document name | $xwiki.getURL('XWiki.SuggestLuceneService', 'get', 'outputSyntax=plain') | name:INPUT* OR web:INPUT* | 3 | $xwiki.getSkinFile('icons/silk/page_white_text.png') | Yes | Yes
Document content | $xwiki.getURL('XWiki.SuggestLuceneService', 'get', 'outputSyntax=plain') | INPUT* | 3 | $xwiki.getSkinFile('icons/silk/page_white_text.png') | No | Yes
Attachment name | $xwiki.getURL('XWiki.SuggestLuceneService', 'get', 'outputSyntax=plain') | name:INPUT* AND type:attachment | 3 | $xwiki.getSkinFile('icons/silk/attach.png') | Yes | Yes
Attachment content | $xwiki.getURL('XWiki.SuggestLuceneService', 'get', 'outputSyntax=plain') | INPUT* AND type:attachment | 3 | $xwiki.getSkinFile('icons/silk/attach.png') | No | Yes
Blog Posts | $xwiki.getURL('XWiki.SuggestLuceneService', 'get', 'outputSyntax=plain') | INPUT* AND object:Blog.BlogPostClass | 3 | $xwiki.getSkinFile('icons/silk/page_white_picture.png') | No | No
Users | $xwiki.getURL('XWiki.SuggestLuceneService', 'get', 'outputSyntax=plain') | INPUT* AND object:XWiki.XWikiUsers | 3 | $xwiki.getSkinFile('icons/silk/user.png') | No | Yes
Workspaces | $xwiki.getURL("${xcontext.mainWikiName}:WorkspaceManager.WorkspacesSuggestLuceneService", 'get', 'outputSyntax=plain') | XWiki.XWikiServerClass.wikiprettyname:INPUT* AND object:WorkspaceManager.WorkspaceClass | 3 | $xwiki.getSkinFile('icons/silk/chart_organisation.png') | Yes | Yes

Tags:
Created by Administrator on 2010/07/28 09:54

- Comments (0)
- Annotations (0)
- Attachments (1)
- History
- Information

Copyright 2004-2026 XWiki
4.0-milestone-1