|
Lines 644-660
subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () authori
Link Here
|
| 644 |
|
644 |
|
| 645 |
my @mappings = ( |
645 |
my @mappings = ( |
| 646 |
{ |
646 |
{ |
| 647 |
name => 'match-heading', |
647 |
name => 'match', |
| 648 |
type => 'string', |
648 |
type => 'string', |
| 649 |
facet => 0, |
649 |
facet => 0, |
| 650 |
suggestible => 0, |
650 |
suggestible => 0, |
| 651 |
searchable => 1, |
651 |
searchable => 1, |
| 652 |
sort => undef, |
652 |
sort => 0, |
| 653 |
marc_type => 'marc21', |
653 |
marc_type => 'marc21', |
| 654 |
marc_field => '150', |
654 |
marc_field => '150(ae)', |
| 655 |
}, |
655 |
}, |
| 656 |
{ |
656 |
{ |
| 657 |
name => 'match-heading', |
657 |
name => 'heading', |
| 658 |
type => 'string', |
658 |
type => 'string', |
| 659 |
facet => 0, |
659 |
facet => 0, |
| 660 |
suggestible => 0, |
660 |
suggestible => 0, |
|
Lines 664-670
subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () authori
Link Here
|
| 664 |
marc_field => '150a', |
664 |
marc_field => '150a', |
| 665 |
}, |
665 |
}, |
| 666 |
{ |
666 |
{ |
| 667 |
name => 'match-heading', |
667 |
name => 'heading', |
| 668 |
type => 'string', |
668 |
type => 'string', |
| 669 |
facet => 0, |
669 |
facet => 0, |
| 670 |
suggestible => 0, |
670 |
suggestible => 0, |
|
Lines 673-678
subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () authori
Link Here
|
| 673 |
marc_type => 'marc21', |
673 |
marc_type => 'marc21', |
| 674 |
marc_field => '150(ae)', |
674 |
marc_field => '150(ae)', |
| 675 |
}, |
675 |
}, |
|
|
676 |
{ |
| 677 |
name => 'heading-main', |
| 678 |
type => 'string', |
| 679 |
facet => 0, |
| 680 |
suggestible => 0, |
| 681 |
searchable => 1, |
| 682 |
sort => 0, |
| 683 |
marc_type => 'marc21', |
| 684 |
marc_field => '150a', |
| 685 |
}, |
| 686 |
{ |
| 687 |
name => 'heading', |
| 688 |
type => 'string', |
| 689 |
facet => 0, |
| 690 |
suggestible => 0, |
| 691 |
searchable => 1, |
| 692 |
sort => 0, |
| 693 |
marc_type => 'marc21', |
| 694 |
marc_field => '150', |
| 695 |
}, |
| 696 |
{ |
| 697 |
name => 'match-heading', |
| 698 |
type => 'string', |
| 699 |
facet => 0, |
| 700 |
suggestible => 0, |
| 701 |
searchable => 1, |
| 702 |
sort => 0, |
| 703 |
marc_type => 'marc21', |
| 704 |
marc_field => '150', |
| 705 |
}, |
| 676 |
); |
706 |
); |
| 677 |
|
707 |
|
| 678 |
my $se = Test::MockModule->new('Koha::SearchEngine::Elasticsearch'); |
708 |
my $se = Test::MockModule->new('Koha::SearchEngine::Elasticsearch'); |
|
Lines 694-700
subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () authori
Link Here
|
| 694 |
}); |
724 |
}); |
| 695 |
|
725 |
|
| 696 |
my $see = Koha::SearchEngine::Elasticsearch::Search->new({ index => $Koha::SearchEngine::Elasticsearch::AUTHORITIES_INDEX }); |
726 |
my $see = Koha::SearchEngine::Elasticsearch::Search->new({ index => $Koha::SearchEngine::Elasticsearch::AUTHORITIES_INDEX }); |
| 697 |
|
|
|
| 698 |
my $marc_record_1 = MARC::Record->new(); |
727 |
my $marc_record_1 = MARC::Record->new(); |
| 699 |
$marc_record_1->append_fields( |
728 |
$marc_record_1->append_fields( |
| 700 |
MARC::Field->new('001', '123'), |
729 |
MARC::Field->new('001', '123'), |
| 701 |
- |
|
|