indexing - How to reindex solr after deleting a row from PostgreSql? -


i taking csv dump database , indexing table using solr.if delete row table, how remove row solr index?

there several strategies:

  1. know deleted ids marking them deleted in original database , sending special $deletedocbyid key in dataimporthandler
  2. periodically delete , reindex scratch, way legacy records go away
  3. automatically add field "date-indexed" every record (e.g. in updaterequestprocessor chain) , then, @ end of reindexing, run query delete records have old "date-indexed" indicates has not been updated.

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -