Bug 23470

Summary: Elasticsearch - OpacSuppression not implemented in search result
Product: Koha Reporter: Marjorie Barry-Vila <marjorie.barry-vila>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P5 - low CC: aspencatteam, caroline.cyr-la-rose, ere.maijala, frank.hansen, jonathan.druart, nick, patrick.robitaille, severine.queune
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23676
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 16660    
Bug Blocks:    
Attachments: OpacSuppression System preferences settings
9XX fields of suppressed record
Record appears in search results (no.4)
Blocked message appears when record is clicked
ES configuration for "suppress"
ES configuration for "suppress" (biblio)

Description Marjorie Barry-Vila 2019-08-16 19:38:40 UTC
Hi,

Records suppressed with OpacSuppression are always displayed in search result with ElasticSearch.

If I try to consult the record in detailed view, the blocking message appears however.

I read here https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16660#c1 :
NB: OPAC suppression is not implemented for Elasticsearch

Anyone work on it?

Regards,
Marjorie
Comment 1 Katrin Fischer 2019-08-17 06:03:47 UTC
Linking this to a bug that seems to have implemented the correct behaviour, looks like this might be a regression.
Comment 2 Katrin Fischer 2019-08-17 06:06:09 UTC
Updating to a bug for now, because if it is a regression, that would be quite bad. Still should be confirmed with further testing.
Comment 3 Nick Clemens (kidclamp) 2019-08-19 13:58:19 UTC
Hi Marjorie,

I cannot recreate this, can you please give some example records and let me know your settings?

-Nick
Comment 4 Caroline Cyr La Rose 2019-09-30 14:59:01 UTC
Created attachment 93325 [details]
OpacSuppression System preferences settings
Comment 5 Caroline Cyr La Rose 2019-09-30 15:00:26 UTC
Created attachment 93326 [details]
9XX fields of suppressed record
Comment 6 Caroline Cyr La Rose 2019-09-30 15:01:44 UTC
Created attachment 93327 [details]
Record appears in search results (no.4)
Comment 7 Caroline Cyr La Rose 2019-09-30 15:02:31 UTC
Created attachment 93328 [details]
Blocked message appears when record is clicked
Comment 8 Caroline Cyr La Rose 2019-09-30 15:05:27 UTC
Created attachment 93329 [details]
ES configuration for "suppress"
Comment 9 Caroline Cyr La Rose 2019-09-30 15:06:12 UTC
Created attachment 93330 [details]
ES configuration for "suppress" (biblio)
Comment 10 Caroline Cyr La Rose 2019-09-30 15:08:41 UTC
Nick, I uploaded a bunch of screen shots from Collecto's ES test instance. Let me know if you need anything else.
Comment 11 Katrin Fischer 2019-10-07 21:07:16 UTC
Hi Caroline, I think if it works for for Nick but not for you, we need to look for the difference...

What version of Koha are they running?
Is there a way to confirm that the suppress index is configured and filled?
Comment 12 Caroline Cyr La Rose 2019-10-08 13:48:52 UTC
Koha version 18.05.03 is the one I tested on. I don't have a master version with ES.

I attached screen captures that show the suppress index configuration. Where else should I look?
Comment 13 Marjorie Barry-Vila 2019-11-06 15:13:22 UTC
(In reply to Katrin Fischer from comment #11)
> Hi Caroline, I think if it works for for Nick but not for you, we need to
> look for the difference...
> 
> What version of Koha are they running?
> Is there a way to confirm that the suppress index is configured and filled?

Hi Katrin,

Have you been able to watch Caroline's last comment?
I have another client reporting the same problem and everything seems well configured for the suppress index.

Regards,
Marjorie
Comment 14 Katrin Fischer 2019-11-06 17:38:53 UTC
(In reply to Marjorie Barry-Vila from comment #13)
> (In reply to Katrin Fischer from comment #11)
> > Hi Caroline, I think if it works for for Nick but not for you, we need to
> > look for the difference...
> > 
> > What version of Koha are they running?
> > Is there a way to confirm that the suppress index is configured and filled?
> 
> Hi Katrin,
> 
> Have you been able to watch Caroline's last comment?
> I have another client reporting the same problem and everything seems well
> configured for the suppress index.
> 
> Regards,
> Marjorie

Hi Marjorie, I am actually not a Elasticsearch expert, but have tried to help narrow it down and get he experts to take a look. Last I had talked to Nick in Marseille about it - adding both Nick and Ere in hope they have a minute and some new ideas.
Comment 15 Jonathan Druart 2020-01-10 13:48:21 UTC

*** This bug has been marked as a duplicate of bug 23676 ***