Unfortunately I don't think it's that sophisticated... There was a
request out in the Wordpress world for an extendable search interface
(like Drupal) but I don't think it got much traction. The plugin we
use now for searching simply implements hooks that modify the query (a
lot) before it goes to the DB.
Our use of Wordpress is not exactly typical... for us it's more of a
CMS than a blog. We'd have no problem integrating it with Java...
Right now I'm using version 1.2 still (I'm waiting for the bug reports
on 1.3 to settle down, especially in regard to DataImportHandler), so
I'm probably not going to be using DataImportHandler. My plan was
just to have it set up to send add document commands whenever a post
is published or modified (after being published).
Right now I'm looking at a plugin that exists to integrate WP with
Lucene (using ZendSearchLucene, I think). I think it could be fairly
easily modified to work with Solr instead (it just has to send
commands over HTTP instead of using direct access to the index). My
only thing is we wanted to use faceting as well, which isn't really
implemented with that plugin at all.
After I didn't find anything or get a response for a while we've
already started working on it... Nothing complete yet but at least so
far I can see everywhere where I think things need to be modified
(it's not the top priority so we're not exactly moving quickly). It's
not so bad, just work. Since I'm not using DataImportHandler my
plugin may not end up being very useful to others but perhaps I'll put
it up somewhere anyway as a rough example.
Thanks for the replies.
--
Steve
On Nov 10, 2008, at 11:27 AM, Noble Paul നോബിള്
नोब्ळ् wrote:
I'm not sure what kind of interfaces WordPress expose. Does it have a
DB/REST end point?
If so, it would be very easy to write a sample data-config.xml for
wordpress.
--Noble
On Mon, Nov 10, 2008 at 8:13 PM, Grant Ingersoll
<[EMAIL PROTECTED]> wrote:
I don't know of anyone that has done this, but I would welcome it
as well.
I suspect the main issue is that most WP users live in a shared
hosting
world, where Java doesn't play very nicely.
That being said, it would be fairly easy to use the
DataImportHandler's feed
import for indexing (I think) and then it's just a matter of
pointing the
search box at the Solr instance, I suppose.
On Nov 6, 2008, at 11:19 PM, Stephen Weiss wrote:
Hi,
We recently implemented Solr for one major search component of our
site,
and now that this is complete we're turning to other areas of our
site to
see where Solr can help us improve results relevancy and
performance.
One major area where I think Solr could do a lot of good is to
replace
Wordpress's search function. Wordpress powers a solid 1/3 of our
site, and
moving this over could provide dramatic performance benefits. I
see there
is a Lucene plugin for WP but I have not seen any plugin yet using
Solr.
While I'm not terribly afraid of writing one (we've already
completely
replaced the built-in routine with our own plugin to optimize MySQL
searching), it would of course be even better if there was some
sort of
plugin already out there (why reinvent the wheel)? Somehow it
just seems
strange that no one would have tried this yet.
I figure if anyone knows, someone on this list knows. Thanks for
any
info!
--
Steve
--------------------------
Grant Ingersoll
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ
--
--Noble Paul