You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Natarajan, Rajeswari" <ra...@sap.com> on 2017/05/13 15:48:07 UTC

d: org.apache.http.ParseException: Invalid content type: - solr distributed search 4.10.4

Hi,

When doing a distributed query from solr 4.10.4 ,getting below exception

org.apache.solr.common.SolrException: org.apache.http.ParseException: Invalid content type:
                org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:311)
                org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
                org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)
                ariba.arches.search.ArchesSearcher.invokeSearch(ArchesSearcher.java:306)
                ariba.arches.search.ArchesSearcher.search(ArchesSearcher.java:169)
                ariba.arches.search.SearchManagerServlet.handleSelect(SearchManagerServlet.java:651)
                ariba.arches.search.SearchManagerServlet.service(SearchManagerServlet.java:146)


                javax.servlet.http.HttpServlet.service(HttpServlet.java:848)


query is below:

http://xxxx:20042/ /search/select?q=(*:*)&wt=xml&rows=5&fl=SupplierID,MarketPrice&shards=xxxx:20042 /search/select/executeS2-63,xxxx:20022/ search/select/execute/S1-69


In the code

Below method n SolrCore is used to execute the query.
execute(SolrRequestHandler handler, SolrQueryRequest req, SolrQueryResponse rsp) {


Saw ssame issue in https://lists.gt.net/lucene/java-dev/242650.

If we test the distributed query in a stand alone solr  as below it works

http://localhost:8983/solr/select?shards=localhost:8983/solr,localhost:8984/solr&indent=true&q=ipod+solr


Any pointers  to resolve this issue please.


Thank you,
Raji