Hi Matt,

What are your indexes? Also could you try these queries on CouchDB 2.1. The
index selector was improved significantly in 2.1 to avoid these types of
issues.

Cheers
Garren

On Wed, Aug 23, 2017 at 9:49 PM, Matt Cosentino <mcosent...@cacorp.com>
wrote:

> This is very strange. I have a very simple query:
>
> { selector: { "type": { "$eq": "client" } } }
>
> This returns no results, but there are documents with a type value of
> client, and the index exists.
>
> I try other values in the query and they all work.
>
> I try this query instead:
>
> { selector: { "type": { "$regex": "client" } } }
>
> This gives me the results I expect. Why?
>
> Here's another strange thing. I have another version of my database on
> another server. I run the original query there and it works. Both servers
> are running version 2.0 of CouchDB. Does anyone have any idea what could be
> wrong?
>
>
> - Matt
>
>

Reply via email to