Servicely Configuration
Full Text Search
4 min
a full text search is a search that is accessible from any page and runs on all configured tables the search results will be presented on a single page split into the respective tables the search found results in if configured, you can use full text search, by left clicking on the top right hand corner of your servicely screen where you see a magnifying glass icon screenshot below restricting access to use this functionality, you need to be on version 1 10 or later to restrict access to the search functionality, you can create/update a string application property called system search role required if this is blank, all users will be able to access this feature however, it will typically be a role as a value, such as platform agent configure table to configure a table to be available for full text search capability, navigate to administration > full text search > full text search configuration create a new record and then populate the following fields field description example value name name of the configuration entry, you should name it the same as the target table itsmrequest target table the table full text search should search on itsmrequest order the order the search result will appear in, in ascending order 100 active yes template html formatted template with reference to information returned by the processing script this template defines how the search results will be presented visually for this table on the search result page example below processing script script to retrieve required information from nominated fields example below sample template html and angular knowledge is recommended note the variables in the enclosed {{ }} brackets are the parameters in the answer json variable on the sample processing script you may create a new css class (or more) on a portal style linked to the portal definition record for your servicely environment (this would have been set up as part of your environment’s branding, refer to branding docid\ fmfstq1rkelcjz s39vgw that css class can then be used on the html template here \<div class="servicely search result content"> \<h2>\<a href="{{data link}}">{{number}}\</a>\</h2> \<div class="servicely demo search results">\<span>short description\</span>\<b>{{shortdescription}}\</b>\</div> \<div class="servicely demo search results">\<span>priority\</span>\<span>\<b>{{priority}}\</b>\</span>\</div> \<div class="servicely demo search results">\<span>requestor\</span>\<span>\<b>{{requestor}}\</b>\</span>\</div> \<div class="servicely demo search results">\<span>requestedfor\</span>\<span>\<b>{{requestedfor}}\</b>\</span>\</div> \</div> sample processing script javascript knowledge is recommended note the variable current refers to the individual records returned by the full text search so if the search is searching on itsmrequest table, current refers to a itsmrequest record the syntax on accessing the available fields from the current object is the same as server side scripting outlined here table api (server) docid\ latfchaaxu1wqcrr1vn0p answer = { number current number(), requestor current requestor displayvalue(), requestedfor current requestedfor displayvalue(), priority current priority displayvalue(), shortdescription current shortdescription() };