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: 
You can use PouchDB find plugin API which is way more sophisticated than allDocs IMO for querying. With the PouchDB find plugin, there is a regex search operator which will allow you do exactly this. 

```
db.find({selector: {name: {$regext: '/vw_'}}});

```

It's in BETA at the time of writing but we are about to ship a production app with it. That's how stable it has been so far. See <https://github.com/nolanlawson/pouchdb-find> for more on Pouch Db Find
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.