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:
- know deleted ids marking them deleted in original database , sending special $deletedocbyid key in dataimporthandler
- periodically delete , reindex scratch, way legacy records go away
- 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
Post a Comment