Post Reply 
Centralized management of search sources
Apr. 26, 2011, 12:28 PM
Post: #1
Centralized management of search sources
Hi all.
in the process of trying various browsers decided to centralize search source management and ran into some problems. i'am still working on it but wanted to check several things in advance.
i've setup a default search engine http://local.ptron/search/{search terms}
Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "! * 0 Search engines - Scan & redirect            {sh8an} (Out)"
Match = "$URL(http://local.ptron/search/\1(\+|%20) \2)$TST(\1=$LST(SearchEngines))"
Replace = "$JUMP($GET(seHost))"

the list itself
Code:
##############################################
##
## Redirect search according to keyword (NoAddURL)
## * google should be always bottom most
##
##############################################

# Reference
dict                $SET(seHost=http://dictionary.reference.com/search?q=\2)
thes            $SET(seHost=http://thesaurus.reference.com/search?q=\2)
wiki                $SET(seHost=http://en.wikipedia.org/wiki/\2)
#????
%D0%B2%D0%B8%D0%BA%D0%B8    $SET(seHost=http://ru.wikipedia.org/wiki/\2)
????            $SET(seHost=http://dictionaries.rin.ru/cgi-bin/see?word=\2)
????            $SET(seHost=http://slovari.yandex.ru/search.xml?text=\2)

# General search
yahoo            $SET(seHost=http://search.yahoo.com/bin/search?p=\2)
yandex            $SET(seHost=http://www.yandex.ru/yandsearch?text=\2)
???                 $SET(seHost=http://www.yandex.ru/yandsearch?text=\2)
prxDebug        $SET(seHost=http://local.ptron/search.debug/

# Defaul search engine
*                $JUMP(http://www.google.com/search?q=\1+\2)

1. * matches but does not jump without an explicit jump in the list. is it supposed to be that way or am i doing something wrong
2. figured out that russian keywords can be included in unicode
3. single word searches are broken. i've tried ((\+|%20) \2|) but this way multi word gets caught by \1
4. ie8 currently joins terms with a + sign while in case of wikipedia for example a space would be better. whats' the easy way to explode and join?
thanks in advance for hints
Add Thank You Quote this message in a reply
Apr. 27, 2011, 06:23 PM
Post: #2
RE: Centralized management of search sources
If I understand correctly...

Quote:1. * matches but does not jump without an explicit jump in the list. is it supposed to be that way or am i doing something wrong

Could it be due to
Code:
prxDebug        $SET(seHost=http://local.ptron/search.debug/
missing a closing parenthesis.

Quote:3. single word searches are broken. i've tried ((\+|%20) \2|) but this way multi word gets caught by \1

Try (\+|%20|^?)

Quote:4. ie8 currently joins terms with a + sign while in case of wikipedia for example a space would be better. whats' the easy way to explode and join?
thanks in advance for hints

I would probably have most of the work in the list. The filter might look something like

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "! * 0 Search engines - Scan & redirect            {sh8an} (Out)"
Match = "ptron.search/?=$LST(SearchEngines)"

List entries like

Code:
dict(\+|%20) \2 & $JUMP(http://dictionary.reference.com/search?q=\2)
wiki(\+|%20) (\#(\+|%20)$SET(#=%20))+\# & $JUMP(http://en.wikipedia.org/wiki/\@)

Not tested.

HTH
Add Thank You Quote this message in a reply
Apr. 28, 2011, 03:46 PM
Post: #3
RE: Centralized management of search sources
(Apr. 27, 2011 06:23 PM)JJoe Wrote:  missing a closing parenthesis.
ooops.
thanks for the hints.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: