Skip to content

Commit f53aae2

Browse files
committed
Merge pull request django-haystack#184 from atuljangra/master
Correct documentation for `_update` Thanks to @atuljangra for the patch!
2 parents a5dbe89 + 65572f0 commit f53aae2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pysolr.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ class Solr(object):
307307
308308
solr = pysolr.Solr('http://localhost:8983/solr')
309309
# With a 10 second timeout.
310-
311310
solr = pysolr.Solr('http://localhost:8983/solr', timeout=10)
312311
313312
# with a dict as a default results class instead of pysolr.Results
@@ -431,7 +430,7 @@ def _update(self, message, clean_ctrl_chars=True, commit=True, softCommit=False,
431430
Posts the given xml message to http://<self.url>/update and
432431
returns the result.
433432
434-
Passing `sanitize` as False will prevent the message from being cleaned
433+
Passing `clean_ctrl_chars` as False will prevent the message from being cleaned
435434
of control characters (default True). This is done by default because
436435
these characters would cause Solr to fail to parse the XML. Only pass
437436
False if you're positive your data is clean.

0 commit comments

Comments
 (0)