Search.ini explained
By Bausch Patrick. Monday, 19. October 2009, 07:30:08
Unfortunately the article Manually Editing Opera Searches using search.ini is out of date and there have been taken no efforts to make a necessary update. I did a lot of copy&paste – there is no use to re-invent the wheel – but I had to do also a lot of changes and added all the new stuff from Opera 8, 9 & 10.
Location
Since Opera 9.20 the search engines have been split up into 2 search files:
The pre-installed search engines are located in your search.ini in the installation folder. This file is sometimes called standard, global or default search.ini.
Opera 10.00 has multiple search files in your installation folder. Normally you are using your localised version in /locale/.
If this folder does not exist or is empty Opera selects /locale/en as default. As last backup Opera would use the one in /defaults.
The other search file containing your custom/added searches is located in your profile folder.
List of search.ini entries:
- [Version]
- [Search Engine 1]
- UNIQUEID=7A8CADE6677811DDBA4B5E9D55D89593
- Name=&Google
- URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8
- ICON=http://redir.opera.com/favicons/google/favicon.ico
- Query=
- Key=g
- Is post=0
- Has endseparator=0
- Encoding=utf-8
- Search Type=0
- Verbtext=0
- Position=-1
- Nameid=17171
- UseTLD=0
- Deleted=0
Example:
Have a look at the top of a search.ini:
[Version] File Version=25 [Search Engine 1] UNIQUEID=7A8CADE6677811DDBA4B5E9D55D89593 Name=&Google URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 ICON=http://redir.opera.com/favicons/google/favicon.ico Query= Key=g Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=0 Position=-1 Nameid=17171 UseTLD=1 Deleted=0
Explications:
Opera Preferences version 2.0 ; Do not edit this file while Opera is running ; This file is stored in UTF-8 encodingcomments…
[Version] File Version=25no need for explications here.
[Search Engine 1]This entry determines the order in which Opera will list the search entries. (Comment: First the search engines of the standard search.ini, second the search engines of you custom search.ini).
UNIQUEID=7A8CADE6677811DDBA4B5E9D55D89593Should not be edited: Opera identifies a search engine by his Unique ID number. This is required for synchronization to Opera Link, as well for setting the standard and speed dial search engines.
Name=&GoogleThe name of the search engine.
URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8This entry is the URL of the query. It will get displayed in the address bar after you execute the query.
There are two parameters: %s and %i.
%s will get replaced by the search string you enter in the search field on the personal bar (or the high-lighted word if you execute a query using the Hotclick or right-click menu), %i will get replaced by the Preferred number of search results per page or by zero 0 if you haven't set one up in the Preferences dialog.
If you want to use %i and haven't set up a Preferred number of search results per page, make sure the search engine returns more than zero results. [1]
ICON=http://redir.opera.com/favicons/google/favicon.icoNo favicons are saved at the very first start of Opera, so Opera shows these icons for the default searches.
Query=This entry contains the query string. It will only get used if Is post=1 is set! In that case you would put the query part of the URL here. […] The query part will not appear in the address bar after you execute the query because the query gets submitted using post. Since the Google example uses Is post=0, this setting has not been set. [1]
Key=gThis entry contains the Keyword. Entering “g” Opera will search for Opera using the Google search engine. […] Keywords have to be unique. Duplicates will be ignored.
If you leave the Key setting empty, this Search Engine […] will not get displayed on your Personal bar. This makes it possible to “hide” the Hotclick and Translation searches. [1]
Is post=0This entry determines how the query will get sent to the server. If Is post=0 the query string will get passed on in the URL and the query will get submitted using get. If Is post=1 the query string will not get passed on in the URL and the query will get submitted using post. If Is post=1 you will have to fill in the Query= line. [1]
Has endseparator=0If set, there will be a separator after the search entry on some dialogs. Separators group related items, e. g., on the left image, you will notice an end separators (horizontal rule) after Paperball. [1]
Encoding=utf-8This entry sets the character encoding of International characters in your search query. For example, if set to Encoding=utf-8, Opera would encode your query using Unicode UTF-8 encoding. If you were searching for “g König”, Opera would replace the umlaut “ö” and submit “K%C3%B6nig” instead.
This setting depends on the search engine you are using. If you have problems with International characters, try changing this to Encoding=iso-8859-1 or some other settings. [1]
Search Type=0Please be careful with this entry, since some Search Types have a special meaning:
- 0: Normal search
- 2: Super Search (outdated)
- 12: Find in page
- 14: Find in history
- 40: First search in start bar
- 41: Second search in start bar
- 50: Dictionary
- 51: Encyclopaedia
- 52: Convert currency
- 53: Open as URL
- 54: Send mail
- 100-121: Translation
Verbtext=0This entry refers to the language file. The corresponding string will be used to name the search engines in search fields. Obsolete since Opera 9.5 and replaced by Nameid=.
Position=-1Sets the position of the corresponding search field in the Personal bar. Choose -1 to hide it from the toolbar, or any non-negative integer n to make it visible at the (n+1)th position (counted from left to right). [1]
Since Opera 10 you can do this much faster by using Opera's GUI: Add a search to the bar by selecting it from the toolbar's right-click menu. To change the toolbar positioning hold the Shift key while moving your search field.
Nameid=17171This entry refers to the language file. The corresponding string will be used to name the search engines in search fields. If Nameid=0 then the name set in Name= will be used.
UseTLD=0On first run, Opera (UseTLD=1) contact a Google server, and it returns the correct top level domain (TLD) to use (google.ru for Russia, google.no for Norway, and so on).
Works actually only for the google domain. UseTLD is mentioned in a changelog.
Deleted=0custom search.ini only!
This entry specifies whether the search engine will appear in Opera () or not (1).
If Opera Link is enabled, Deleted=1 is used in synchronization process to set the search engine “deleted” in the database of Opera Link and will be remove from the search.ini files of your synchronised Opera installations.
Links
http://operawiki.info/SearchINIEditing englisch
http://opera-fansite.de/wiki/Search.ini german
http://ashula.info/opera/inis/searchini japanese
http://wiki.operacesky.net/Search.ini czech
opera:help/search.html
References
http://operawiki.info/SearchINIEditing [1]








z@h3k # 19. October 2009, 19:12