1.参数clean

Solr DataImportHandler

  • clean : (default 'true'). Tells whether to clean up the index before the indexing is started.

clean如果为false:则不会删除老索引中的数据,但是会更新数据(根据id进行判断)

例如:数据库中有数据1、2、3,索引中有数据2、3

如果clean=false,那么full import后,索引中仍有数据1。

如果clean=true,那么full import后,索引重无数据1。

 

相关文章:

  • 2021-05-23
  • 2021-11-09
  • 2021-07-19
  • 2022-03-03
  • 2021-06-09
  • 2021-12-05
  • 2021-12-05
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-04-17
  • 2021-07-01
相关资源
相似解决方案