O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The document indexer – the REST API endpoint

The main aim of /api/index is to accept tokens from Concierge and add them to the index. So let's look at what we mean by "adding them to the index".

Document indexing can be defined as the following set of consecutive tasks:

  1. We rely on the payload to provide us with all the meta information needed to store the token.
  2. We follow down the inverted index tree, create any node in the path not yet created, and finally add the token details.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required