Better search function

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Better search function

Post by hgoor »

Hi,

I would like to know if the search function within Serendipity can be upgraded to be better?

I like to be able to use stuff like literal search (you know: "this") and some other stuff like booleans like AND, OR, NOT.

Also, highlite of search words would be great!
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Better search function

Post by garvinhicking »

Hi!

Using MySQL the boolean search can be triggered by using "+" and "-" characters [like the google search] in your search words. Literal search is triggered by enclosing the word in quotes ("").

Highlighting search words can AFAIR be done with the search highlight plugin...

best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Better search function

Post by hgoor »

garvinhicking wrote:Hi!

Using MySQL the boolean search can be triggered by using "+" and "-" characters [like the google search] in your search words. Literal search is triggered by enclosing the word in quotes ("").

Highlighting search words can AFAIR be done with the search highlight plugin...

best regards,
Garvin
Does the built-in search work like this already?
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Better search function

Post by garvinhicking »

Hi!

The MySQL fulltextsearch that is builtin and used on MySQL setups works like this in Serendipity 1.0, if the fulltext index keys on your database were set [this should be the case unless you got any SQL errors when installing s9y].

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply