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 ;)