0

I have been reading Designing Data-Intensive Applications lately. In Chapter 6 on partitioning (sharding), the author talks about the need for secondary indexes in storage systems. In particular, the author says:

And finally, secondary indexes are the raison d’être of search servers such as Solr and Elasticsearch.

I'm quite confused about this. I think search engines use inverted index instead of forward index, which effectively creates index on each word instead of on some primary key of documents. So why is secondary index needed at all?

wlnirvana
  • 1,811
  • 20
  • 36

1 Answers1

2

Inverted index is one kind of secondary indexes.
We need secondary indexes to accelerate our system and provide special capabilities such as searching in forward index.

shanfeng
  • 503
  • 2
  • 14
  • Could you elaborate on why inverted index is one kind of secondary indexes? Or what is the primary index used here? – wlnirvana Feb 27 '23 at 02:10