1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02: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 {
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 {
};
}
}