_remove_stopwords takes 28% of all the time spent to do search.
This patch disable this function. Stop words should be handle
directly by Zebra, shouldn't it?
---
 C4/Search.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index 9f32c3c..674d062 100755
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -689,6 +689,9 @@ sub pazGetRecords {
 sub _remove_stopwords {
     my ( $operand, $index ) = @_;
     my @stopwords_removed;
+    #FIXME: This function take an infinite time. For a search, 28% of 
processing
+    #       time is spent here removing stopword.
+    return ( $operand, [EMAIL PROTECTED] );
 
     # phrase and exact-qualified indexes shouldn't have stopwords removed
     if ( $index !~ m/phr|ext/ ) {
-- 
1.5.5.GIT

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to