Skip to content

Added JSON update support for Solr versions >= 3.1. - #6

Open
nhooey wants to merge 1 commit into
petdance:masterfrom
nhooey:json-update
Open

Added JSON update support for Solr versions >= 3.1.#6
nhooey wants to merge 1 commit into
petdance:masterfrom
nhooey:json-update

Conversation

@nhooey

@nhooey nhooey commented Aug 23, 2011

Copy link
Copy Markdown

Improves document serialized speed by about 3x.

Improves document serialized speed by about 3x.
@nhooey

nhooey commented Aug 23, 2011

Copy link
Copy Markdown
Author

The comment added here:

  •    # Solr's JSON update handler takes multiple "add" commands for
    
  •    # multiple docs, unlike the XML version, so we have to serialize
    
  •    # an "add" JSON object for each document, then remove the leading
    
  •    # and trailing curly braces
    

Applies to code designed to work with Solr <= 3.1. Solr >= 3.2 doesn't need this workaround, but works with it. This bug was fixed in https://issues.apache.org/jira/browse/SOLR-2496 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants