[wp-hackers] Search API and Sphinx
Andy Skelton
skeltoac at gmail.com
Fri Jun 4 20:38:04 UTC 2010
Exactly right.
On Jun 4, 2010 2:16 PM, "Edward Dale" <scompt at scompt.com> wrote:
>> I haven't seen much talk about the search API [1]. It looks like it's
>> going to be integrated i...
> ...
> I don't have any plans to update the Sphinx plugin to work this way.
Would this be the basic structure of a Sphinx plugin that worked with 3.0?
function my_posts_search($v) {
if(is_search()) {
// get all the post ids from sphinx that match get_query_var('s')
// return " AND id IN ($ids)
}
return '';
}
Outside of that function, the majority of the work in the plugin would
be to get the data into Sphinx, right?
Cheers,
Edward
_______________________________________________
wp-hackers mailing list
wp-hackers at l...
More information about the wp-hackers
mailing list