From: Bill Erickson Date: Thu, 10 Oct 2019 20:52:39 +0000 (-0400) Subject: Metarecord constituants search uses ES X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c2f8db3df879e156ddce31de381563aa13191c29;p=working%2FEvergreen.git Metarecord constituants search uses ES Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/catalog/elastic.service.ts b/Open-ILS/src/eg2/src/app/share/catalog/elastic.service.ts index 22cbe7c2e2..23f3887da5 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/elastic.service.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/elastic.service.ts @@ -25,7 +25,6 @@ export class ElasticService { if (ctx.marcSearch.isSearchable()) { return true; } if ( ctx.termSearch.isSearchable() && - !ctx.termSearch.fromMetarecord && !ctx.termSearch.hasBrowseEntry) { return true; } @@ -163,6 +162,10 @@ export class ElasticService { rootNode.filter(range); } } + + if (ts.fromMetarecord) { + rootNode.filter(new TermQuery('metarecord', ts.fromMetarecord)); + } }