5 Replies Latest reply on Jan 16, 2017 10:10 AM by Ramesh Reddy

    Teiid embedded calling Solr with POST request

    Hend Amin Novice

      Hello,

      I am using Teiid Embedded with solr. I have a large request that causes exception but works when i reduce its size.

      org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected content type application/octet-stream but got .

        at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:455) ~[solr-solrj-4.6.0.jar:4.6.0 1543363 - simon - 2013-11-19 11:16:35]

        at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:197) ~[solr-solrj-4.6.0.jar:4.6.0 1543363 - simon - 2013-11-19 11:16:35]

        at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90) ~[solr-solrj-4.6.0.jar:4.6.0 1543363 - simon -

       

      I think this is because because Teiid calls solr server with GET method.

      Is it possible to call Solr with POST method through Teiid embedded

       

      Thanks

      Hend