Question: I would like to get all documents that contain a certain string in them, I can't seem to find a solution for it..

for example I have the following doc ids

```
vw_10
vw_11
bmw_12
vw_13
bmw_14
volvo_15
vw_16

```

how can I get allDocs with the string vw\_ "in" it?

Answer: 
Use [batch fetch API](http://pouchdb.com/api.html#batch_fetch):

```
db.allDocs({startkey: "vm_", endkey: "vm_\ufff0"})

```

Note: `\ufff0` is the highest Unicode character which is used as sentinel to specify ranges for ordered strings.
You better have a view with the key you want to search. This ensures that the key is indexed. Otherwise, the search might be too slow.