Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8466755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:26:10+00:00 2026-06-10T15:26:10+00:00

I have a Solr-Servlet with 600.000 documents, each document contains about 10-30 multivalued fields.

  • 0

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:

Document1( field1 / value1, field2 / value2)

I want to insert a field3 / value3 to this document. For now, there is the need to do it this way:

Document1( field1 / value1, field2 / value2, field3 / value3)

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:

Document1( field3 / value3)

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:

org.apache.solr.common.SolrException: Invalid UTF-8 start byte 0xfc

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?

Thanks for any help!

edit: Should I use Solrj libraries? Does anyone know if this avoid my problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:26:12+00:00Added an answer on June 10, 2026 at 3:26 pm

    After some research I found my problem and I want to share it for all who might have the same problem. The inputstream seems to be depended on your running system. As you may guess, I´m using a Windows machine. The only thing you have to do, is setting your outputstream as UTF-8, which will be used by Solr to reindex your document. I used a FileOutputStream, because I needed to document the change. So my missing code was:

    OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream("Updatefiles/"+uuid+".xml"),"UTF-8");
    

    You can choose the encoding of nearly all streams. I didn´t know about this parameter, so for all who will face this problem -> just set the encoding of your outputstream.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Solr instance which contains documents that represent products. Each document has
I have a Solr index with document fields something like: id, body_text, date, num_upvotes,
I have installed a servlet (solr) that requires that I set the variable solr.solr.home
I have implemented solr search for my rails application. I have indexed the fields
I have a SOLR index over several million full text documents. This works very
I have a question about Solr and the possibility to implement a customized update
I have a number of documents stored in Solr cluster, and want to get
I have a large solr index, and I have noticed some fields are not
I currently have a SOLR query which uses the query (q), query fields (qf)
i have a tipical solr stuff: need of indexing documents, only that my documents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.