Web / Apache Solr Interview questions
What is the DataImportHandler in Solr?
The DataImportHandler (DIH) is a contrib module that pulls data into Solr from external sources - relational databases via JDBC, XML feeds, or flat files - based on a data-config.xml file describing the source query and field mappings.
It supports full imports, which reindex everything, and delta imports, which pull only changed rows based on a timestamp column, reducing load on repeated syncs.
DIH is convenient for simple, low-frequency batch syncs, but it has been removed from the default Solr distribution in recent major versions in favor of external ETL tools, so new projects should generally avoid depending on it.
More Related questions...