Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70E5CC472 for ; Fri, 14 Mar 2014 15:20:53 +0000 (UTC) Received: (qmail 72973 invoked by uid 500); 14 Mar 2014 15:20:40 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 72884 invoked by uid 500); 14 Mar 2014 15:20:39 -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 72863 invoked by uid 99); 14 Mar 2014 15:20:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 15:20:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of furkankamaci@gmail.com designates 209.85.219.41 as permitted sender) Received: from [209.85.219.41] (HELO mail-oa0-f41.google.com) (209.85.219.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 15:20:32 +0000 Received: by mail-oa0-f41.google.com with SMTP id j17so2756182oag.14 for ; Fri, 14 Mar 2014 08:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=V6SkSM8lUx6Eyvh/Gx3HJzE2CGTDZsaSA49vD9e/ghE=; b=XLuiBfOtXg8rndQWKtnGQsYGLu6A9e2SAc3fEQdeHLnwXf0HlXvpvVl9mbRusFrzjy AmITyBykhlbj9Co7iSA9H+S0cF1XM6BYMdU0pf7HoK5+mdIeHpY4hQg86NAyepmwNPr5 6Qx0LAY5+tJdW/h7ndySUfIlsVE5gwpm5mMrbgzsiSI3I7pYoGM0hGDAhmv/PZ3rW+f3 3Q5lmsDAdGMse2/F9BERG5Uv2CJRTohDVJFaGJxC1UOhkJ6OsOLFXPKfMVEXDTWD2aAR ncCUMSL7JFYye+QiE50SXGLOiZsv6JtPoIoua9oM/aplMSXhFzei6sMkGvMNofy5Ur6z yyMg== MIME-Version: 1.0 X-Received: by 10.60.78.165 with SMTP id c5mr1371108oex.83.1394810411080; Fri, 14 Mar 2014 08:20:11 -0700 (PDT) Received: by 10.76.154.162 with HTTP; Fri, 14 Mar 2014 08:20:11 -0700 (PDT) In-Reply-To: <67EAF9AC-DE90-45A0-ACE8-8ED853E4DCAD@answers.com> References: <5322B73A.70207@juntadeandalucia.es> <67EAF9AC-DE90-45A0-ACE8-8ED853E4DCAD@answers.com> Date: Fri, 14 Mar 2014 17:20:11 +0200 Message-ID: Subject: Re: PROBLEM SOLRJ From: Furkan KAMACI To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=089e0111de6214e11704f4929b68 X-Virus-Checked: Checked by ClamAV on apache.org --089e0111de6214e11704f4929b68 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi; There is another issue. It seems like you are using SolrCloud. If so check here: https://wiki.apache.org/solr/Solrj#Using_with_SolrCloud Thanks; Furkan KAMACI 2014-03-14 15:28 GMT+02:00 Greg Walters : > Hello, > > You shouldn't include the # as part of the url nor should the collection > be specified directly like that either. Check out > https://wiki.apache.org/solr/Solrj#HttpSolrServer for an example. > > Thanks, > Greg > > On Mar 14, 2014, at 3:00 AM, =C1ngel Miralles < > angel.miralles.exts@juntadeandalucia.es> wrote: > > > Hi everybody, > > > > we are starting a new project and have just discover apache solr. We ar= e > interesting in indexing db blob and varchar2 columns. Ours is a Java > project and we would like to work with DataImportHandler and Solrj wrappe= r > API. > > > > Our develpment enviroment: > > > > * Apache solr server 4.7 > > * Solrj 4.7.0 > > * Glassfish 4 > > * JRE 1.7.0_45 > > > > We are getting an error when doing a simple query, here is the _code_: > > > > / HttpSolrServer solr =3D new HttpSolrServer(" > http://localhost:8983/solr/#/collection1/");// > > //// > > // try{// > > // SolrQuery query =3D new SolrQuery();// > > // query.setQuery("Maxtor");// > > // query.addFilterQuery("cat:electronics");// > > // query.setFields("id","price","manu","cat");// > > // query.setStart(0);// > > // > > // QueryResponse response =3D solr.query(query);// > > // SolrDocumentList results =3D response.getResults();// > > // for (int i =3D 0; i < results.size(); ++i) {// > > // System.out.println(results.get(i));// > > // }/ > > > > _Exception_: RemoteSolrException, code 1003 and the detailMessage: > "Expected mime type application/octet-stream but got text/html." > > > > First of all I'd like to ask about our use of solr, is this a good idea > for indexing blobs or big varchar2 columns? > > > > And the second is about the error, anyone can help us with the exceptio= n? > > > > Thanks in advanced ;) > > > > > > > > --089e0111de6214e11704f4929b68--