Using pysolr 3.10.0 with Solr 9.8.0, I'm getting empty values for the values 'contents'
and 'metadata'
. This is because Solr returns values for 'file'
and 'file_metadata'
instead of the aforementioned keys.
with open(file_path, 'rb') as temp_file:
response = solr.extract(file_obj = temp_file,extractOnly=True)