SearchEdit - search.ini Editor for Opera

Search Suggestion 2

Search suggestion works out of the box for Yandex, Wikipedia, Bing and Baidu.

With a little tweaking you can also add search suggestion to other searches.
You need only to add 2 lines to your searches.

Some examples:

- google suggest english hl=en
download:google.com.se
Suggest Protocol=JSON
Suggest URL=http://www.google.com/complete/search?output=opera&q={SearchTerm}&hl=en

- google suggest german hl=de
download: google.de.se
Suggest Protocol=JSON
Suggest URL=http://www.google.com/complete/search?output=opera&q={SearchTerm}&hl=de

- youtube ds=yt
download: youtube.se
Suggest Protocol=JSON
Suggest URL=http://www.google.com/complete/search?output=opera&q={SearchTerm}&ds=yt&hl=en

- amazon
Suggest Protocol=JSON
Suggest URL=http://completion.amazon.com/search/complete?method=completion&q={SearchTerm}&search-alias=aps&mkt=1


Update 1:
removed the firefox mask in urls, thanks Alexander for this hint.

Update 2:
added se-files: can be imported with SearchEdit

Update 3:
added Baidu in the list of standard suggestion searches

Update 4:
Opera build 1085 has now officially google suggest search:

Suggest Protocol=JSON
Suggest URL=http://clients1.google.com/complete/search?json=t&q={SearchTerm}&client=opera

Update 5:
fixed suggest url for Youtube.com

Search suggestionsSearchEdit 0.4.1 released

Comments

d4rkn1ght Monday, July 5, 2010 6:14:08 AM

up

metude Monday, July 5, 2010 7:10:44 AM

party
Can you share Search.ini file?

Dan Alexandrudantesoft Monday, July 5, 2010 7:53:54 AM

I found that
Suggest URL=http://suggestqueries.google.com/complete/search?output=firefox&q={SearchTerm}
also works (for global searches, I think)

Any idea how to set the number of results shown? The URLs return 10 suggestions, but Opera shows just 3.

Mağruf ÇolakoğluZAHEK Monday, July 5, 2010 9:31:56 AM

Can you do this ? If yes, pls share one of your default search.ini
I haven't do it.

Dan Alexandrudantesoft Monday, July 5, 2010 10:36:43 AM

I don't think you can edit the default search.ini, nor the default google engine (i.e. 7A8CADE6677811DDBA4B5E9D55D89593). I added a new google search, for which the auto-suggest is triggered (just shows 3 entries instead of 10). You may not want to use the same UNIQUEID for the new engine as me wink

Originally posted by c:\Users\user\AppData\Roaming\Opera\Opera\search.ini:


Opera Preferences version 2.1
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding

[Version]
File Version=32

[Search Engine 1]
UNIQUEID=7A8CADE6677811DDBA4B5E9D55D89593
Name=&Google
Verbtext=0
URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8
Query=
Key=g
Is post=0
UseTLD=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Position=-1
Nameid=1632215285
Deleted=0

[Search Engine 2]
UNIQUEID=A96164ACD674DB469286E9B2BF479C5D
Name=YouTube
Verbtext=0
URL=http://www.youtube.com/results?search_query=%s&aq=f
Suggest Protocol=JSON
Suggest URL=http://suggestqueries.google.com/complete/search?output=firefox&ds=yt&q={SearchTerm}
Query=
Key=t
Is post=0
UseTLD=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Position=-1
Nameid=0
Deleted=0

[Search Engine 3]
UNIQUEID=94007813B458C744A75BA6E508D4CDDE
Name=Google2
Verbtext=0
URL=http://www.google.com/search?client=opera&ie=utf-8&oe=utf-8&rls=en&hl=en&q=%s
Suggest Protocol=JSON
Suggest URL=http://suggestqueries.google.com/complete/search?output=firefox&q={SearchTerm}
Query=
Key=gg
Is post=0
UseTLD=0
Has endseparator=0
Encoding=UTF-8
Search Type=0
Position=-1
Nameid=0
Deleted=0

metude Monday, July 5, 2010 12:43:20 PM

Doesn't work!

Originally posted by dantesoft:

I don't think you can edit the default search.ini


You can, if you will change C:/Program Files/Opera/defaults/search.ini file

Bausch PatrickPhilo007 Monday, July 5, 2010 2:56:10 PM

Personally I do my experiments in a different *test* folder (linux only bigsmile : opera -pd path)
I recommend to do your modifications always in your profile search,ini (custom searches) because this file will not be overwritten by your next update.
There are a lot of search.ini files and you may edit the wrong file.
/defaults/search.ini is a copy of the localised english search.ini and is only used if my localised search.ini is missing...

I think some of you are editing the wrong file bigsmile



If you are editing a standard search with opera's GUI, the modified search will be written in your custom search.ini (profile folder)


metude Monday, July 5, 2010 4:45:59 PM

Originally posted by Philo007:

If you are editing a standard search with opera's GUI, the modified search will be written in your custom search.ini (profile folder)


I know. I'm using Opera@USB for this tests...

Originally posted by Philo007:

I recommend to do your modifications always in your profile search,ini (custom searches) because this file will not be overwritten by your next update.


I'm not using auto-update. I'm using Desktopteam builds and installing with classsic installer. It's overwriting...

Originally posted by Philo007:

I think some of you are editing the wrong file


No I'm sure... I changed default .ini file, opened Opera, other search engines have gone... Just stayin 3 search. Status: OK. I'm selecting third engine for default engine. But doesn't work. Can you upload ss?

(if i told wrong thing, sorry my poor English)

Charles SchlossChas4 Monday, July 12, 2010 7:47:52 PM

cool

Can it be done via the edit custom searches?

metude Tuesday, July 13, 2010 9:01:03 AM

Originally posted by Chas4:

Can it be done via the edit custom searches?


No. For now, you can't edit suggestion protocol & url with Opera UI...

Alexanders-a-s-h Tuesday, July 13, 2010 5:13:32 PM

Unfortunately in these examples Opera needs to be masked as Firefox in the suggest url.


On all google searches that I tried (global, local and youtube) works this rule:
add somewhere in suggest url word json e.g.
search?json&bla=bla&bla=bla or search?bla=bla&json&bla=bla

and remove parameters that contain name of another browser e.g. &client=firefox or &output=firefox.
Or even better replace it with opera ;D. Opera probably won't get money for this yet but maybe will get them in future

Alexsalexs Tuesday, July 13, 2010 6:02:10 PM

Originally posted by s-a-s-h:

(…) add somewhere in suggest url word json e.g.
search?json&bla=bla&bla=bla (…) and remove parameters that contain name of another browser e.g. &client=firefox or &output=firefox.


great, i add your hint.

Mağruf ÇolakoğluZAHEK Tuesday, July 13, 2010 8:11:22 PM

Anyone know why only 3 suggestion??

Ingvar StepanyanRReverser Wednesday, July 14, 2010 9:20:49 AM

I hope they will add UI settings for suggestions count together with Suggest Protocol & URL.

hundredorzero Thursday, July 22, 2010 12:43:11 PM

smasty Monday, August 23, 2010 12:03:21 PM

Ingvar StepanyanRReverser Saturday, September 18, 2010 1:30:26 PM

Look at previous page, I wrote about it and anothers some time ago in my blog: http://my.opera.com/RReverser/blog/2010/07/07/suggest-url-s-for-some-search-engines

Write a comment

New comments have been disabled for this post.