[Koha-devel] [Koha-patches] [PATCH] Disable _remove_stopwords in Search.pm to improve performances

Frederic Demians frederic at tamil.fr
Wed Jul 2 16:32:01 CEST 2008


> Have you tested to see if the zebra engine does handle the stopwords 
> correctly? I didn't know that it did that.

No I haven't tested and I don't know also if Zebra supports stop words. 
I can't find any information on the subject. Stop words have less and 
less interest with zebra mechanisms like relevance ranking or field 
weighting. In Zebra ccl.properties, there is a st-word-list line?...  
And google gives that:

http://lists.indexdata.dk/pipermail/zebralist/2006-February/001001.html

> What should happen in the NoZebra case?

Good question.

> Also, if we're going to stop using this sub, should we remove it and 
> all calls to it instead of just shunting it?

Yes, stop stopwords :-)

Here is a summary of my tests:

opac-main.pl page:

    * without mod_perl: 1.12s to load
    * with mod_perl: 0.3s

opac-search.pl, with mod_perl, a search hitting 300 records in a 200,000 
biblio records DB:

    * at the beginning, without any optimization: >4s
    * with my patches: 1.8s. Patch on:
          o C4::Context reading Koha config file multiple time
          o stop words
          o biblio framework caching application-wide
    * it seems that optimization can be done on authorized values


--
Frédéric
_______________________________________________
Koha-devel mailing list
Koha-devel at lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel



More information about the Koha-devel mailing list