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 6472155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:18:35+00:00 2026-05-25T06:18:35+00:00

I need to update my solr documents with detailed informations i can grab from

  • 0

I need to update my solr documents with detailed informations i can grab from a mysql database.

Example:

  • solr field “city” –> “London” (read from an xml source with post.jar tool)
  • on update time (requestHandler /update already configured with custom plugin to do other stuff) solr should query mysql for more information about “London” (or whatever just read)
  • solr updates the fields of that document with the query result

i’ve been trying with a JDBC plugin and with a DIH handler (which i can only use calling /dataimport/ full-import… and i can’t in my specific case) and so far no success 🙁

Any of you had the same problem? How did you solve it? Thanks!

edit: i forgot, for the dih configuration i tried following this guide http://www.cabotsolutions.com/2009/05/using-solr-lucene-for-full-text-search-with-mysql-db/

  • 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-05-25T06:18:36+00:00Added an answer on May 25, 2026 at 6:18 am

    Please do include the full output of /dataimport/full-import when you access it in your browser. Solr error messages can get cryptic.

    Have you considered uploading documents by XML? http://wiki.apache.org/solr/UpdateXmlMessages . Its more powerful, allowing you to use your own logic when uploading documents.

    1. Read each row from SQL and compose an XML document (string) with each document under tags.

    2. Post the entire XML string to /update . Dont forget to set the MIMEtype header as text/xml . And make sure to set your Servler container’s (Tomcat, Jetty) upload limit on POSTs (Tomcat has 2mb limit, if I recall right)

    3. dont forget the commit and optimize commands

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

Sidebar

Related Questions

I need to update large amount of documents in solr very often. For example,
I need to update my .htaccess file to redirect permanently all URLs from http://example.com/pages/5604/article/something/?page=299
I need to update my new database with data from 1 column in my
I need to update the Notes field in my table tblMain by concatenating the
I need to update an existing SharePoint content type by adding a new field
We have the following Solr (3.4) schema for indexing html/text documents: <fields> <field name=text
I need to do a Solr sub-query, which if it was in MySQL would
is there possibility to update a new field to an existing document? For example:
I need to update random numbers for top 100 rows (a field) in sql.
I need to update my application from a central server. The application checks always

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.