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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -