Hadoop and Solr are used together for indexing large datasets across distributed systems. Hadoop provides a distributed file system and Solr provides search capabilities. Solr indexes data from Hadoop and allows for fast, scalable search across large datasets even when data and computing resources are spread across multiple machines and locations. The combination of Hadoop and Solr provides a fault-tolerant solution for storing, processing, and searching very large datasets in a distributed environment.