• Home
  • LLMs
  • Docker
  • Kubernetes
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Apache Solr | SolrJ: Update documents (stream.body) using the request handler /update
  1. Notes
  2. Example

  1. Notes
    In order for the code bellow to work:

    ► Make sure to enable Streaming in "solrconfig.xml":

    Please visit this page for more details: http://lucene.apache.org/solr/guide/8_5/requestdispatcher-in-solrconfig.html

    ► Make sure to update the variables ("solrUrl", "collectionName", ...) with your information.

    ► Make sure to add the fields "id" and "field1" to your SchemaXml.

    To force the commit, make sure to set the property "openSearcher" to true (SolrConfigXml file -> updateHandler -> autoCommit)

    Note: You can also force the commit by running the URL: http://localhost:8983/solr/COLLECTION-NAME/update?commit=true
  2. Example
    Update documents (stream.body) using the request handler /update:
© 2025  mtitek