-
Notifications
You must be signed in to change notification settings - Fork 340
Extract method comes with no specified headers #96
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Having the same issue here. |
This apparently changed at some point in Solr's release cycle. I'd want to test to confirm that it works as far back as we support but otherwise my first question is whether this works if you use a generic mime type like |
…ed test solr sever from 4.1.0 to 4.6.0. All tests pass
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I may be getting silly or maybe I just can't understand the implementation, but it seems like the
extract
method is not implemented in a way to give proper parameters to_send_request
.There are no given headers. With the current
_send_request
implementation, when no headers are provided, it usesapplication/xml
instead :Using pysolr with django-haystack, I was unable to correctly implement the
extract_contents_file
method from SolrBackend due to this fact. Every submitted files were considered as XML instead of the ContentType found by Tika, resulting in a continuous ParseError...Commentting the given part of code solves my case, but I'm sure there may be another better option.
Do you have any clue ?
The text was updated successfully, but these errors were encountered: