[koha-commits] main Koha release repository branch 3.12.x updated. v3.12.00-beta1-248-gdd2a4c2

Git repo owner gitmaster at git.koha-community.org
Mon Apr 22 02:49:11 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.12.x has been updated
       via  dd2a4c21e609fce9b3babbfe2272db26a30e3cf6 (commit)
      from  6eb9176cbf4613830f9d90a640e18efdb9871a53 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dd2a4c21e609fce9b3babbfe2272db26a30e3cf6
Author: Fridolyn SOMERS <fridolyn.somers at biblibre.com>
Date:   Mon Feb 11 14:47:09 2013 +0100

    Bug 9588: weighted search query with index
    
    When QueryWeightFields is enabled, the searching query is created with several options.
    In C4::Search::_build_weighted_query, when no index is defined, the query is build with fuzzy and stemming options. When an index is defined, theses options are missing, only unconditional right truncation is used.
    The consequence is that when QueryStemming is disabled, a search with index can give more results (due to right truncation) that a search without.
    
    This patch adds stemming and fuzzy on search with index, conditioned with QueryFuzzy and QuerryStemming sysprefs.
    Also changes world list search (wrld) weight to r6 in order to set fuzzy search to r8 and stemming search to r9 (like search without index).
    
    Test plan :
    - Go to searching preferences (admin/preferences.pl?tab=searching)
    - Set QueryAutoTruncate to "only if * is added"
    - Set QueryFuzzy and QuerryStemming to "Don't try"
    - Set QueryWeightFields to "Enable"
    - Go to advanced search page
    - Select an indexe (ie Title) and perform a search on a short word
    => Look at zebrarv log and see that query does not contain right truncation : @attr 5=1
    - Set QueryFuzzy to "Try"
    - Perform same search
    => Look at zebrarv log and see that query contains fuzzy : @attr 5=103
    - Set QueryFuzzy to "Don't try" and QuerryStemming to "Try"
    - Perform same search
    => Look at zebrarv log and see that query contains rigth truncation on stemmed word : @attr 5=1
    
    Signed-off-by: koha.aixmarseille <koha.aixmarseille at gmail.com>
    
    Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
    This patch makes Fuzzy and Stemming influence search results on weighted
    queries when using an index. Side-effect is however that the results for a
    search like index=term* (add truncation manually too) could be LOWER than the
    the number of hits for index=term. Further comments on Bugzilla.
    Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>
    (cherry picked from commit 39bf1c502aec95742c81f43d7d631223b399ce5b)
    
    Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

-----------------------------------------------------------------------

Summary of changes:
 C4/Search.pm |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list