From 020e14d260bd7212e637cdb430bbfada162b68ea Mon Sep 17 00:00:00 2001 From: markcarey Date: Tue, 9 Nov 2010 11:24:46 -0800 Subject: [PATCH] fixes a case when used with the SphinxAuthors plugin in conjunction with others that result in IncludeBlogs being set resulting in a searchd error that author index does not have blog_id filter defined. --- plugins/SphinxSearch/lib/SphinxSearch/Search.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/SphinxSearch/lib/SphinxSearch/Search.pm b/plugins/SphinxSearch/lib/SphinxSearch/Search.pm index fad1ada..4632acd 100644 --- a/plugins/SphinxSearch/lib/SphinxSearch/Search.pm +++ b/plugins/SphinxSearch/lib/SphinxSearch/Search.pm @@ -122,7 +122,8 @@ sub _get_sphinx_results { } my @blog_ids = keys %{ $app->{searchparam}{IncludeBlogs} }; - my $filters = { blog_id => \@blog_ids, }; + my $filters = { blog_id => \@blog_ids, } + unless $app->param('index') =~ /^(author|user|member)/i; my $filter_stash = {}; my $range_filters = {}; my $vars = {};