Bugzilla – Attachment 75490 Details for
Bug 18316
Add weighting/relevancy options to ElasticSearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Update Koha/Schema/Result/SearchField.pm
Update-KohaSchemaResultSearchFieldpm.patch (text/plain), 1.86 KB, created by
David Gustafsson
on 2018-05-23 13:59:25 UTC
(
hide
)
Description:
Update Koha/Schema/Result/SearchField.pm
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2018-05-23 13:59:25 UTC
Size:
1.86 KB
patch
obsolete
>From 93c5a794b59ec08038f6b20418e22e367d5a6439 Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Wed, 23 May 2018 15:57:11 +0200 >Subject: [PATCH] Update Koha/Schema/Result/SearchField.pm > >https://bugs.koha-community.org/show_bug.cgi?id=18316 >--- > Koha/Schema/Result/SearchField.pm | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > >diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm >index ee32f42cf2..9eaa4e4799 100644 >--- a/Koha/Schema/Result/SearchField.pm >+++ b/Koha/Schema/Result/SearchField.pm >@@ -48,11 +48,17 @@ the human readable name of the field, for display > =head2 type > > data_type: 'enum' >- extra: {list => ["","string","date","number","boolean","sum"]} >+ extra: {list => ["","string","date","number","boolean","sum","isbn","stdno"]} > is_nullable: 0 > > what type of data this holds, relevant when storing it in the search engine > >+=head2 weight >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [5,2] >+ > =cut > > __PACKAGE__->add_columns( >@@ -65,9 +71,13 @@ __PACKAGE__->add_columns( > "type", > { > data_type => "enum", >- extra => { list => ["", "string", "date", "number", "boolean", "sum"] }, >+ extra => { >+ list => ["", "string", "date", "number", "boolean", "sum", "isbn", "stdno"], >+ }, > is_nullable => 0, > }, >+ "weight", >+ { data_type => "decimal", is_nullable => 1, size => [5, 2] }, > ); > > =head1 PRIMARY KEY >@@ -114,8 +124,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 13:30:43 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1IenQWmCO16tJ/nIFTFYug >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-23 13:34:49 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wB00F2omQ2QadnIxg8keIQ > > __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); > >-- >2.11.0
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 18316
:
61472
|
73139
|
73140
|
73492
|
73493
|
73600
|
73601
|
74112
|
74115
|
74116
|
74117
|
74714
|
74720
|
74751
|
74752
|
74753
|
74754
|
75073
|
75074
|
75075
|
75076
|
75458
|
75490
|
75519
|
75520
|
75521
|
75522
|
75523
|
75524
|
75525
|
75526
|
75527
|
75528
|
75529
|
75530
|
75531
|
75536
|
75537
|
75538
|
75539
|
75540
|
75541
|
75699
|
75730
|
77661
|
77662
|
77663
|
77664
|
77665
|
77666
|
77667
|
78396
|
78397
|
78398
|
78399
|
78400
|
78401
|
78402
|
78403
|
80278
|
80335
|
81004
|
81005
|
81006
|
81007
|
81008
|
81009
|
81010
|
81011
|
81012
|
81507
|
81508
|
81509
|
81510
|
81511
|
81512
|
81513
|
81514
|
81515
|
81516
|
82050