Note that there are some explanatory texts on larger screens.

plurals
  1. POEncoding problems while getting data from Solr Servlet
    primarykey
    data
    text
    <p>I have a Solr-Servlet with 600.000 documents, each document contains about 10-30 multivalued fields. In order to upate a document, I´m facing problems because Solr hasn´t any update function in version 3.6. What I want to do: I want to do: I want to have a app, which just need the field, which should be inserted to the document. For example:</p> <blockquote> <p>Document1( field1 / value1, field2 / value2)</p> </blockquote> <p>I want to insert a field3 / value3 to this document. For now, there is the need to do it this way:</p> <blockquote> <p>Document1( field1 / value1, field2 / value2, field3 / value3)</p> </blockquote> <p>Cause of the high number of the fields in each document, I just want to add field3 / value3, without the need to write know all the other fields like shown above:</p> <blockquote> <p>Document1( field3 / value3)</p> </blockquote> <p>Thats why I wrote an application, which first automatically get all the data from Solr and than add the one field, which should be inserted to the document. Everything went right, until I worked with documents, where fields have values like 'ä' 'ö' 'ü' and so on. Solr than return an error:</p> <blockquote> <p>org.apache.solr.common.SolrException: Invalid UTF-8 start byte 0xfc</p> </blockquote> <p>I figured out, that this is caused by the posted characters above. Therefore I wanted to know which encoding my inputstream is (I used juniversalchardet for this) and it pointed out, that the encoding is WINDOWS-1252. My application is written in Java without any Solr libraries (just the standard http libraries and javax for xml handling). Do you have any idea where the encoding is changed and how can I avoid it? Is it Java or is it, because the servlet is running on a windows machine?</p> <p>Thanks for any help!</p> <p>edit: Should I use Solrj libraries? Does anyone know if this avoid my problem?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload