(name string)
| 1695 | } |
| 1696 | |
| 1697 | func validFuncName(name string) bool { |
| 1698 | if isGeoFunc(name) || IsInequalityFn(name) { |
| 1699 | return true |
| 1700 | } |
| 1701 | |
| 1702 | switch name { |
| 1703 | case "regexp", "anyofterms", "allofterms", "alloftext", "anyoftext", "ngram", |
| 1704 | "has", "uid", "uid_in", "anyof", "allof", "type", "match", "similar_to": |
| 1705 | return true |
| 1706 | } |
| 1707 | return false |
| 1708 | } |
| 1709 | |
| 1710 | type regexArgs struct { |
| 1711 | expr string |
no test coverage detected