Both build on Lucene. Elasticsearch: JSON-native, easier clustering, better for analytics (Kibana). Default for modern stacks.
Solr: XML configuration, mature, strong for traditional search. Better faceting historically. Both support distributed search, replication, and similar features now. Elasticsearch has larger community and cloud offerings.