Skip to search.
mt-dev · Movable Type Developers

Group Information

  • Members: 152
  • Category: Development
  • Founded: Dec 10, 2002
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
XSearch. Feedback Appreciated.   Message List  
Reply Message #300 of 2113 |
The built in search functionality in MT does fine, but at times I've found
myself needing
something more or different in my work. What I've wished for was a pluggable
search
facilities like MT's template engine.

In scratching my own itch, I've thrown down the gaunlet and finally done
something about
it. I've created MT::XSearch an extensible framework for creating "search
plugins" for
Movable Type. Before I go too far, I wanted to release it to the members of this
mailing list
to solict some feedback on its operation and API. You can download it here:

http://www.timaoutloud.org/code/mt/MT-XSearch0.2.tar.gz

It currently should be considered ALPHA code. The API and feature sets may
change based
on the feedback I get here. Its NOT recommended for use in the wild.

I endeavored to keep with the spirit of MT and based much of the design on MT's
API and
its existing search tags. I've also tried to keep it simple while maximizing
flexibility and
extensibility.

A couple of other quick notes:

* In the generic search script (mt-xsearch.cgi), I require a blog_id parameter
to be passed
in. I didn't want to limit searches to a specific weblog, but MT's template
engine requires a
template is. This parameter is only used for retrieving the template. A plugin
can chose to
ignore it. I'm trying to think of a more elegant solution.

* I had hope to create a somewhat standardized interface for submitting searches
to
plugins for the sake of interoperability (of Web forms etc) and users sanity
while trying to
remain flexible and extensible. I've taken a stab at it with one required
parameter and a
few optional others with defaults, but do nothing to enforce it. I'm unsure that
I've done all
I could or perhaps I shouldn't worry at all. (Thinking outloud again.)

* All the files have embedded POD documentation that could use some work. (Of
course!)

Thoughts? Please post your feedback to this mailing list. I'd like for this to
be a community
discussion. Thanks.

<tim/>




Sun Feb 29, 2004 12:11 pm

tappnel
Offline Offline
Send Email Send Email

Message #300 of 2113 |
Expand Messages Author Sort by Date

The built in search functionality in MT does fine, but at times I've found myself needing something more or different in my work. What I've wished for was a...
tappnel Offline Send Email Feb 29, 2004
12:12 pm

... Hash: SHA1 Hi Tim, ... Actually, limiting searches to a specific weblog may be a good thing in the end, as the current search engine's exposure of blog_id...
Benjamin Trott
btrott Offline Send Email
Mar 2, 2004
2:11 am

Thanks for the feedback Ben. ... I tossed this very topic around in my head for a bit. I couldn't think of any use cases for multiple weblogs myself, but...
tappnel Offline Send Email Mar 2, 2004
3:14 pm

... Someone who is managing non-blog content in MT (in a separate "blog") may want their entire site to be searchable. Having multiple blogs available through...
Adam Kalsey
akalsey Offline Send Email
Mar 2, 2004
5:58 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help