January 2020
Intermediate to advanced
640 pages
16h 56m
English
The second API that we will be designing will grant our project's applications access to any concrete link-graph implementation that satisfies the index.Indexer interface over a network link. The following snippet outlines the protocol buffer definitions for the RPC endpoints that we will need:
syntax="proto3";package proto;import "google/protobuf/timestamp.proto";import "google/protobuf/empty.proto";service TextIndexer { rpc Index(Document) returns (Document); rpc UpdateScore(UpdateScoreRequest) returns (google.protobuf.Empty); rpc Search(Query) returns (stream QueryResult);}The Index method inserts a document into the search index or triggers a reindexing operation if the document already ...