Web / Apache Solr Interview questions
List the ways to import data into Solr?
Solr supports several ingestion paths depending on the source system and update frequency:
- Update APIs - post JSON, XML, or CSV directly to
/updateusing curl, thebin/posttool, or an HTTP client. - SolrJ - programmatic indexing from Java applications.
- DataImportHandler (DIH) - pulls data from a database, XML, or RSS feed via a configuration file; deprecated as a bundled module in newer Solr versions.
- Streaming pipelines - tools like Apache NiFi, Kafka Connect, or Logstash push data continuously into Solr.
For production systems with frequent updates, a streaming pipeline or the update API is generally preferred over DIH because it decouples ingestion from Solr's own process.
More Related questions...