Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 66DA4200B5C for ; Thu, 11 Aug 2016 16:05:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 65D25160A93; Thu, 11 Aug 2016 14:05:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 846A2160A90 for ; Thu, 11 Aug 2016 16:05:47 +0200 (CEST) Received: (qmail 48931 invoked by uid 500); 11 Aug 2016 14:05:46 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 48918 invoked by uid 99); 11 Aug 2016 14:05:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2016 14:05:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 92F55C0B4F for ; Thu, 11 Aug 2016 14:05:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.18 X-Spam-Level: * X-Spam-Status: No, score=1.18 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id bk-nuzUB-6Ps for ; Thu, 11 Aug 2016 14:05:44 +0000 (UTC) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id EA0BD5FB41 for ; Thu, 11 Aug 2016 14:05:43 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id x130so7008578ite.1 for ; Thu, 11 Aug 2016 07:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=VwwuoDP6HE5FBot5p3cp0iMHZ8ku7MeyPPZH40uNgag=; b=vnA0kSHIlZRDF+7SbWNg+TCEZW0sphotNPkLjHsgISFZb04hgIsZgx6rtVJhVV2pa+ OKoXrdO6xYooHHGJEL+bpByui9gHNw7z98H1EhG4F08gjMbnGKi9xSh36k9+53nfiaWA xWL3srdrbkEmjp8s6vQC9yw+l3pMSrHHLvZ5JxgVCE2PN1OT1EbR/4S95qrVS74q0h5n FoCzKsePGKzOZyN6wy623r5jeMXYLFsNWqwSM085P7AEgGCkGthLCrHhh5nsro+C2sml U4hhlCvRuVwbLqXXJoi4M2qV+QICE6L6374A7D/D8uTk+D5d7MGAOQYayVnu6bcU6785 nIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VwwuoDP6HE5FBot5p3cp0iMHZ8ku7MeyPPZH40uNgag=; b=U0uKgVuQVQy+8/yl0FA4yHwWTiM4zatbKDdGA+hYKd5EwNDCsFhgngxs33VHSEZnm0 /Uy7NWcJcJ36bfwNw1DufOwqEB5h0ZjTBkLbW3kjgs6bWfMIg7iWHN9gXhMnbN1e9QJW IVHTQxnXWJtmvqX5opVwnKHIvwe4tRMsYT8SnbofbK3ZcYXXKqDCdHFSIEErSraFVGwM uhyyxnj53LsOeEl9nmY/bU9b7lwRbnB19izNRsSoktnBPXdiQO8qWLP1aKdya/x91Fut 45bZ2CW95Kyh0iZ3tHjkk5UFXhaL9o0He0rj1DHDmTFR/IvsCK/Fbgvu+baxWy7Do17i cM4Q== X-Gm-Message-State: AEkoous44QlnpbyF5Ts2Y+yFDtyQ/DSjLeXjyee+m0CX+6rE8Re/USWr7SSQ0iG5aCF8acKyFE8XnonhI/X9xg== X-Received: by 10.36.58.8 with SMTP id m8mr10164838itm.95.1470924342604; Thu, 11 Aug 2016 07:05:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.10.193 with HTTP; Thu, 11 Aug 2016 07:05:22 -0700 (PDT) From: Pablo Anzorena Date: Thu, 11 Aug 2016 11:05:22 -0300 Message-ID: Subject: Consume sql response using solrj To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113f6bd4eeda300539cc4250 archived-at: Thu, 11 Aug 2016 14:05:49 -0000 --001a113f6bd4eeda300539cc4250 Content-Type: text/plain; charset=UTF-8 Hey, I'm trying to get the response of solr via QueryResponse using QueryResponse queryResponse = client.query(solrParams); (where client is a CloudSolrClient) The error it thows is: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://tywin:8983/solr/testcollection1_shard1_replica1: Expected mime type application/octet-stream but got text/plain. {"result-set":{"docs":[ {"count(*)":5304,"d1":2}, {"count(*)":5160,"d1":1}, {"count(*)":5016,"d1":3}, {"count(*)":4893,"d1":4}, {"count(*)":4824,"d1":5}, {"EOF":true,"RESPONSE_TIME":11}]}} at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:558) Then I tryed to implement a custom ResponseParser that override the getContentType() and returns "text/plain", but it returns another error. So... Is it a way to get the sql response via this method? I make it works via Connection and ResultSets, but I need to use the other way (if possible). Thanks! --001a113f6bd4eeda300539cc4250--