Re: Solr7 embeded req: Bad content type error

2018-08-31 Thread Andrea Gazzarini
Hi Alfonso, thank you, too: I've learned another stuff ;) Andrea On 29/08/18 14:31, Alfonso Noriega wrote: Thanks for your time and help Andrea, I guess we should try to use the Json API provided by Solr and figure out a way to do

Re: Solr7 embeded req: Bad content type error

2018-08-29 Thread Alfonso Noriega
Thanks for your time and help Andrea, I guess we should try to use the Json API provided by Solr and figure out a way to do so with SolrJ. On Wed, 29 Aug 2018 at 14:21, Andrea Gazzarini wrote: > Well, I don't know the actual reaso

Re: Solr7 embeded req: Bad content type error

2018-08-29 Thread Andrea Gazzarini
Well, I don't know the actual reason why the behavior is different between Cloud and Embedded client: maybe things are different because in the Embedded Solr HTTP is not involved at all, but I'm just shooting in the dark. I'm not aware about POST capabilities you mentioned, sorry Andrea On

Re: Solr7 embeded req: Bad content type error

2018-08-29 Thread Alfonso Noriega
Yes, I realized that changing the method to GET solves the issue but it is intentionally set to POST as in a real case scenario we had the issue of users creating too long queries which where facing the REST length limits. I think a possible solution would be to send the Solr params as a json in th

Re: Solr7 embeded req: Bad content type error

2018-08-29 Thread Andrea Gazzarini
I think that's the issue: just guessing because I do not have the code in front of me. POST requests put the query in the request body, and the EmbeddedSolrServer expects to find a valid JSON. Did you try to remove the Method param? Andrea On 29/08/2018 13:12, Alfonso Noriega wrote: Hi An

Re: Solr7 embeded req: Bad content type error

2018-08-29 Thread Alfonso Noriega
Hi Andrea, Thanks for your help, something which is relevant and I forgot to mention before is that the requests are always a POST method. As mentioned before, it is not a single query which fails but all of the requests done to the search handler. final SolrQuery q = new SolrQuery("!( _id_:"+ d

Re: Solr7 embeded req: Bad content type error

2018-08-29 Thread Andrea Gazzarini
Hi Alfonso, could you please paste an extract of the client code? Specifically those few lines where you create the SolrQuery with params. The line you mentioned is dealing with ContentStream which as far as I remember wraps the request body, and not the request params. So as request body Sol