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 <greg.walt...@answers.com>: > 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, Ángel Miralles < > angel.miralles.e...@juntadeandalucia.es> wrote: > > > Hi everybody, > > > > we are starting a new project and have just discover apache solr. We are > interesting in indexing db blob and varchar2 columns. Ours is a Java > project and we would like to work with DataImportHandler and Solrj wrapper > 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 = new HttpSolrServer(" > http://localhost:8983/solr/#/collection1/");// > > //// > > // try{// > > // SolrQuery query = new SolrQuery();// > > // query.setQuery("Maxtor");// > > // query.addFilterQuery("cat:electronics");// > > // query.setFields("id","price","manu","cat");// > > // query.setStart(0);// > > // > > // QueryResponse response = solr.query(query);// > > // SolrDocumentList results = response.getResults();// > > // for (int i = 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 exception? > > > > Thanks in advanced ;) > > > > > > > >