Bugzilla – Attachment 23385 Details for
Bug 11255
sort by relevance asc generates a wrong query
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11255: allow sorting by relevance asc
Bug-11255-allow-sorting-by-relevance-asc.patch (text/plain), 1.34 KB, created by
Biblibre Sandboxes
on 2013-12-10 23:38:20 UTC
(
hide
)
Description:
Bug 11255: allow sorting by relevance asc
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2013-12-10 23:38:20 UTC
Size:
1.34 KB
patch
obsolete
>From c86c9df1f1a2cc34d0412a7189bd63e14d838c08 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 15 Nov 2013 11:10:04 +0100 >Subject: [PATCH] Bug 11255: allow sorting by relevance asc > >The query parser config does not declare relevance asc as possible >"modifier". > >Test plan: >0/ create some biblio with "history" in the title >1/ define prefs defaultSortField = relevance and defaultSortOrder = asc >2/ search "history" on the staff interface >3/ note that no result is returned. >4/ apply the patch >5/ verify the queryparser config file in use takes the modification into >account (see the queryparser_config value in your $KOHA_CONF file). >6/ relaunch the search and verify results are returned > >Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> >--- > etc/searchengine/queryparser.yaml | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml >index 0cce85c..53cff85 100644 >--- a/etc/searchengine/queryparser.yaml >+++ b/etc/searchengine/queryparser.yaml >@@ -1427,6 +1427,12 @@ modifier_mappings: > 2: 102 > enabled: 1 > label: Relevance_dsc >+ relevance_asc: >+ bib1_mapping: >+ biblioserver: >+ 2: 102 >+ enabled: 1 >+ label: Relevance_asc > title-sort-az: > bib1_mapping: > biblioserver: >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11255
:
22957
|
23385
|
23539