Search Templates

Search templates are URLs that contain wildcards, these wildcards will then be replaced with the entered search string when you perform a Web Search with one of these templates.

The wildcard can be either an asterisk * or the string %s

To add a new search template to your LaunchBar index, click the “Add” button in the Index pane of the Search Templates indexing rule.

Examples

http://en.wikipedia.org/w/wiki.phtml?search=*
http://www.imdb.com/Find?%s

URL Text Encoding

Most search engines on the web expect the passed search string to be encoded using the ISO Latin 1 string encoding. However, this encoding is rather limited, you cannot encode non Latin scripts such as Hebrew or Japanese with this encoding. Therefore some search engines (e.g. Google) support more versatile encodings, primarily UTF-8.

You can select the desired text encoding in the Options pane of the Search Templates indexing rule. Note that the selected encoding applies to all templates of this specific rule, you should therefore create separate Search Templates indexing rules for each encoding.

Templates using POST instead of GET

Some search engines may require you to send search requests via Form POST instead of GET. To create search templates for these search engines, prefix the corresponding template URL with “post-”.

Example

post-http://en.wikipedia.org/?search=*

Restoring Factory Search Templates

Open the index window and click New > Search Templates > Factory Search Templates, to create a new indexing rule with the latest factory templates.

To avoid conflicts with your own, custom templates it’s recommendable to keep them in a separate indexing rule, so you can safely delete and re-create the factory templates at any time.

You can cut and paste individual templates from one indexing rule to another, so if you have already mixed your custom templates with LaunchBar’s default templates, you can easily extract them to a separate rule.