Bug 16660: Add support for OpacSuppression to Elasticsearch
To test: 1 - Enable suppression 2 - Suppress some records 3 - Apply all the patches 4 - Reindex ES 5 - Search and don't get suppressed records 6 - Disable suppression 7 - Search and get all the records Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
bf6caa81e5
commit
088cdcda5f
|
|
@ -204,6 +204,7 @@ sub build_query_compat {
|
|||
my @sort_params = $self->_convert_sort_fields(@$sort_by);
|
||||
my @index_params = $self->_convert_index_fields(@$indexes);
|
||||
my $limits = $self->_fix_limit_special_cases($orig_limits);
|
||||
if ( $params->{suppress} ) { push @$limits, "suppress:0"; }
|
||||
|
||||
# Merge the indexes in with the search terms and the operands so that
|
||||
# each search thing is a handy unit.
|
||||
|
|
|
|||
|
|
@ -2248,6 +2248,25 @@ biblios:
|
|||
sort: ~
|
||||
suggestible: '1'
|
||||
type: string
|
||||
suppress:
|
||||
label: suppress
|
||||
mappings:
|
||||
- facet: ''
|
||||
marc_field: 942n
|
||||
marc_type: marc21
|
||||
sort: ~
|
||||
suggestible: ''
|
||||
- facet: ''
|
||||
marc_field: 942n
|
||||
marc_type: normarc
|
||||
sort: ~
|
||||
suggestible: ''
|
||||
- facet: ''
|
||||
marc_field: 955n
|
||||
marc_type: unimarc
|
||||
sort: ~
|
||||
suggestible: ''
|
||||
type: boolean
|
||||
ta:
|
||||
label: ta
|
||||
mappings:
|
||||
|
|
|
|||
Loading…
Reference in New Issue