From 3dcf93a039c32e33ff3e510f08189afa2198eaa6 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 10 Oct 2019 16:52:39 -0400 Subject: [PATCH] Metarecord constituants search uses ES Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/share/catalog/elastic.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); + } } -- 2.11.0