1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Add matchType to getPositionSearchQuery #634

This commit is contained in:
Sergei Eremenko 2023-03-13 15:00:39 +02:00
parent 9be4fda56b
commit 14de6cbd10
No known key found for this signature in database
GPG Key ID: AB6D54C1C16D2507

View File

@ -136,6 +136,7 @@ export class GalleryPhotoComponent implements IRenderable, OnInit, OnDestroy {
getPositionSearchQuery(): string { getPositionSearchQuery(): string {
return JSON.stringify({ return JSON.stringify({
type: SearchQueryTypes.position, type: SearchQueryTypes.position,
matchType: TextSearchQueryMatchTypes.exact_match,
text: this.getPositionText(), text: this.getPositionText(),
} as TextSearch); } as TextSearch);
} }
@ -194,4 +195,3 @@ export class GalleryPhotoComponent implements IRenderable, OnInit, OnDestroy {
}; };
} }
} }