Solr commit and optimize questions

前端 未结 4 1012
情书的邮戳
情书的邮戳 2020-12-07 09:23

I have a classifieds website. Users may put ads, edit ads, view ads etc.

Whenever a user puts an ad, I am adding a document to Solr. I don\'t know, however, when to

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 09:26

    The way that this sort of thing is usually done is to perform commit/optimize operations on a Solr node located out of the request path for your users. This requires additional hardware, but it ensures that the performance penalty of the indexing operations doesn't impact your users. Replication is used to periodically shuttle optimized index files from the master node to the nodes that perform search queries for users.

提交回复
热议问题