UNIMAS Official Wiki » SearchCode » Search Suggest Configuration

Search Suggest Configuration

Last modified by Administrator on 2013/06/27 10:37

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
 $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')  Yes  Yes
 $services.localization.render('platform.search.suggestSourceDocumentContent')  $xwiki.getURL('XWiki.SuggestLuceneService', 'get', 'outputSyntax=plain')    __INPUT__*    3  $xwiki.getSkinFile('icons/silk/page_white_text.png')  No  Yes
 $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')  Yes  Yes
 $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  Yes
 $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  Yes
Tags:
Created by Administrator on 2013/06/25 09:11

Start Here

Welcome to the UNIMAS WIKI.
To start, use search function by entering keywords in the search box below :
 

Quick Navigation

About UNIMAS

Course Registration Guidelines

HOW-TO, Tutorial & User Manual

HOW-TO, Tutorial & User Manual

Macros

Pekeliling

STB2242 - PLANT BIOTECHNOLOGY

Semester Registration

Semester Registration Guidelines

Student Quick Guide

signatureattach

Recently Created

Recently Modified

My Recent Modifications


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 5.0.3 - Documentation