advanced search

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

advanced search

Post by Krzyzak »

Hello.
I would like to create advanced search form- I mean - searching by autor,by date,by category - not only simple searching by title.
Is it possible?
Sorry for my language errors- It`s not my native language.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Well, there's no plugin to do that right now. It's going to take some programming. If you're interested in taking a shot at it, you can check out the internal quicksearch plugin to see how it works.

The advanced search will need to add search controls (like the quicksearch plugin does) and use the inputs to create an SQL query (like the quicksearch plugin does).

It seems straightforward, but the existing search simply uses an SQL freetext search; if you want to add wildcards or boolean operations (to make it a truly "advanced" search), things will certainly become more difficult.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The serendipity_event_customarchive allows you to do some advanced category/author selection, maybe that helps? Like judebert mentions, it's a bit different than an advanced search, but not THAT different *g*

HTH,
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