(mgr *cbgt.Manager, indexName, indexUUID string)
| 77 | } |
| 78 | |
| 79 | func CountAlias(mgr *cbgt.Manager, |
| 80 | indexName, indexUUID string) (uint64, error) { |
| 81 | alias, _, err := bleveIndexAliasForUserIndexAlias(mgr, |
| 82 | indexName, indexUUID, false, nil, nil, false, "") |
| 83 | if err != nil { |
| 84 | return 0, fmt.Errorf("alias: CountAlias indexAlias error,"+ |
| 85 | " indexName: %s, indexUUID: %s, err: %v", |
| 86 | indexName, indexUUID, err) |
| 87 | } |
| 88 | |
| 89 | return alias.DocCount() |
| 90 | } |
| 91 | |
| 92 | func QueryAlias(mgr *cbgt.Manager, indexName, indexUUID string, |
| 93 | req []byte, res io.Writer) error { |
nothing calls this directly
no test coverage detected