MCPcopy Create free account
hub / github.com/couchbase/cbft / DocCount

Method DocCount

grpc_client.go:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (g *GrpcClient) DocCount() (uint64, error) {
98 request := &pb.DocCountRequest{IndexName: g.PIndexNames[0],
99 IndexUUID: ""}
100 res, err := g.GrpcCli.DocCount(context.Background(), request)
101 if err != nil {
102 return 0, err
103 }
104 return uint64(res.DocCount), nil
105}
106
107func (g *GrpcClient) Search(req *bleve.SearchRequest) (
108 *bleve.SearchResult, error) {

Callers 1

CountMethod · 0.95

Calls 1

DocCountMethod · 0.65

Tested by

no test coverage detected