From 14de6cbd10e9c7dc5d82f85d412b8201c7382719 Mon Sep 17 00:00:00 2001 From: Sergei Eremenko Date: Mon, 13 Mar 2023 15:00:39 +0200 Subject: [PATCH] Add matchType to getPositionSearchQuery #634 --- .../app/ui/gallery/grid/photo/photo.grid.gallery.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/app/ui/gallery/grid/photo/photo.grid.gallery.component.ts b/src/frontend/app/ui/gallery/grid/photo/photo.grid.gallery.component.ts index 47aadc91..759e5a56 100644 --- a/src/frontend/app/ui/gallery/grid/photo/photo.grid.gallery.component.ts +++ b/src/frontend/app/ui/gallery/grid/photo/photo.grid.gallery.component.ts @@ -136,6 +136,7 @@ export class GalleryPhotoComponent implements IRenderable, OnInit, OnDestroy { getPositionSearchQuery(): string { return JSON.stringify({ type: SearchQueryTypes.position, + matchType: TextSearchQueryMatchTypes.exact_match, text: this.getPositionText(), } as TextSearch); } @@ -194,4 +195,3 @@ export class GalleryPhotoComponent implements IRenderable, OnInit, OnDestroy { }; } } -