Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using commitWithin parameter #61

Closed
pankajkgarg opened this issue Nov 1, 2012 · 0 comments
Closed

Error when using commitWithin parameter #61

pankajkgarg opened this issue Nov 1, 2012 · 0 comments

Comments

@pankajkgarg
Copy link
Contributor

sunburnt throws an error, when commitWithin parameter is provided, while adding a new document.

For example

import sunburnt
si = sunburnt.SolrInterface("http://localhost:8983/solr/")
si.add({"id": 432, "text": "Hello World!"}, commitWithin=10000)

The error message thrown is

SolrError: ({'transfer-encoding': 'chunked', 'status': '400', 'content-type': 'application/xml; charset=UTF-8'}, '\n\n4000For input string: "10000.0"400\n\n')

This is happening because commitWithin parameter is converted to float before the request is sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant