Skip to content

Commit

Permalink
handle geo2dsphere-within suncontext
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayja committed Apr 12, 2024
1 parent 9066143 commit 779149c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions asconfig/as_setconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,14 @@ func createSetConfigNamespaceCmdList(tokens []string, operationValueMap map[Oper
cmd += strings.Trim(token, "{}")
}
} else {
if prevToken == "index-type" || prevToken == "sindex-type" {
switch prevToken {
case "index-type", "sindex-type":
cmd += fmt.Sprintf(";%s.%s", prevToken, token)
prevToken = ""
} else {
case "geo2dsphere-within":
cmd += fmt.Sprintf(";%s-%s", prevToken, token)
prevToken = ""
default:
prevToken = token
}
}
Expand Down

0 comments on commit 779149c

Please sign in to comment.