Skip to content

Commit

Permalink
Fixed initialization parameters on Results. Thanks to jonathan.sl…
Browse files Browse the repository at this point in the history
…enders for pointing this out. v2.0.11
  • Loading branch information
toastdriven committed Apr 28, 2010
1 parent 83b0f87 commit 8ccd48f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pysolr.py
Expand Up @@ -150,7 +150,7 @@

__author__ = 'Joseph Kocherhans, Jacob Kaplan-Moss, Daniel Lindsley'
__all__ = ['Solr']
__version__ = (2, 0, 10)
__version__ = (2, 0, 11)

def get_version():
return "%s.%s.%s" % __version__
Expand All @@ -161,12 +161,12 @@ class SolrError(Exception):
pass

class Results(object):
def __init__(self, docs, hits, highlighting={}, facets={}, spellcheck={}):
def __init__(self, docs, hits, highlighting=None, facets=None, spellcheck=None):
self.docs = docs
self.hits = hits
self.highlighting = highlighting
self.facets = facets
self.spellcheck = spellcheck
self.highlighting = highlighting or {}
self.facets = facets or {}
self.spellcheck = spellcheck or {}

def __len__(self):
return len(self.docs)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@

setup(
name = "pysolr",
version = "2.0.10",
version = "2.0.11",
description = "Lightweight python wrapper for Apache Solr.",
author = 'Daniel Lindsley',
author_email = 'daniel@toastdriven.com',
Expand Down

0 comments on commit 8ccd48f

Please sign in to comment.