benoitc / benoitc/couchdbkit

AttributeError in ViewResults after Search with comma

Open
#69 4 comments 0 reactions 1 assignee Claimed by @benoitc View on GitHub
improvment
Dominant language
Python
Stars
263
Forks
90
PR merge metrics
No merged PRs in 30d

Description

When using Client.search() with a query-parameter that contains a comma (like q="some, string"), the iterator() method of the returned ViewResults object fails with an AttributeError

```
File "/usr/local/lib/python2.6/site-packages/couchdbkit-0.5.1-py2.6.egg/couchdbkit/client.py", line 825, in iterator
rows = self._result_cache.get('rows', [])

AttributeError: 'list' object has no attribute 'get'
```

I'm using a current checkout of couchdb-lucene and a nearly-current (commit 2f3b58ec5874bf94b35ef21e161812828475fc16 ) checkout of couchdbkit.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.