Bugzilla – Attachment 86344 Details for
Bug 18235
Elastic search - Configurable facets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18235: DBIx schema changes
Bug-18235-DBIx-schema-changes.patch (text/plain), 2.02 KB, created by
Josef Moravec
on 2019-03-08 08:11:16 UTC
(
hide
)
Description:
Bug 18235: DBIx schema changes
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-03-08 08:11:16 UTC
Size:
2.02 KB
patch
obsolete
>From 886758b74ca05240513e8a98887cc360c3aa22d2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 16 Feb 2019 16:47:44 -0300 >Subject: [PATCH] Bug 18235: DBIx schema changes > >Fresh changes for SearchField, facet_order. > >Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/Schema/Result/SearchField.pm | 12 ++++++++++-- > t/db_dependent/Koha_Elasticsearch.t | 1 + > 2 files changed, 11 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm >index 0f7d943164..600b3212cb 100644 >--- a/Koha/Schema/Result/SearchField.pm >+++ b/Koha/Schema/Result/SearchField.pm >@@ -59,6 +59,12 @@ what type of data this holds, relevant when storing it in the search engine > is_nullable: 1 > size: [5,2] > >+=head2 facet_order >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ > =cut > > __PACKAGE__->add_columns( >@@ -78,6 +84,8 @@ __PACKAGE__->add_columns( > }, > "weight", > { data_type => "decimal", is_nullable => 1, size => [5, 2] }, >+ "facet_order", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -124,8 +132,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-11-07 22:22:22 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4Q+IXwF0hViF8+kpR96eLA >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-02-16 16:47:02 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VuAoOvILkO9xf7U4NVgZQA > > __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); > >diff --git a/t/db_dependent/Koha_Elasticsearch.t b/t/db_dependent/Koha_Elasticsearch.t >index 419ad722d6..6a34eb0d73 100644 >--- a/t/db_dependent/Koha_Elasticsearch.t >+++ b/t/db_dependent/Koha_Elasticsearch.t >@@ -22,6 +22,7 @@ use t::lib::Mocks; > use t::lib::TestBuilder; > use MARC::Record; > >+use Koha::SearchEngine::Elasticsearch; > use Koha::SearchFields; > > my $schema = Koha::Database->schema; >-- >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 18235
:
60931
|
60932
|
60933
|
61528
|
61529
|
61530
|
64747
|
69485
|
69486
|
69487
|
72936
|
72937
|
72938
|
72999
|
73000
|
73001
|
73193
|
74642
|
74643
|
75995
|
75996
|
85212
|
85213
|
85214
|
85215
|
85216
|
85885
|
85886
|
85969
|
85970
|
85983
|
85984
|
85985
|
85986
|
85987
|
85988
|
85989
|
85990
|
85991
|
85992
|
86340
|
86341
|
86342
|
86343
|
86344
|
86345
|
86346
|
86347
|
86348
|
86349
|
86350
|
86944
|
86945
|
86946
|
86947
|
86948
|
86949
|
86950
|
86951
|
86952
|
86953
|
86954
|
86955
|
86956
|
87141