Add pipeline for tiploc/stanox
Go Test / test (push) Successful in 31s Details

This commit is contained in:
Fred Boniface 2024-06-30 19:36:37 +01:00
parent fed0208291
commit 9496c9aae0
1 changed files with 16 additions and 0 deletions

View File

@ -84,6 +84,22 @@ func CreateCorpusIndexes() error {
func GetTiplocFromCrs(crs string) (tiploc string, err error) { func GetTiplocFromCrs(crs string) (tiploc string, err error) {
// Return TIPLOC from CRS code // Return TIPLOC from CRS code
// PIPELINE:
/*
bson.A{
bson.D{{"$match", bson.D{{"3ALPHA", "BTH"}}}},
bson.D{
{"$project",
bson.D{
{"TIPLOC", 1},
{"STANOX", 1},
{"_id", 0},
},
},
},
}
*/
err = fmt.Errorf("not yet written") err = fmt.Errorf("not yet written")
return "", err return "", err
} }