1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Merge pull request #635 from SmartFinn/add_match_type

Add matchType to getPositionSearchQuery
This commit is contained in:
Patrik J. Braun 2023-03-13 15:18:36 +01:00 committed by GitHub
commit 56de7edb4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {
};
}
}