incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Uvarov <alexander.uva...@gmail.com>
Subject Re: How to do ad hoc where queries in CouchDB
Date Thu, 29 Apr 2010 08:12:35 GMT

On 29.04.2010, at 14:05, Jarrod Roberson wrote:

> I have come up with a technique I have not seen documented anywhere on the
> internet.
> I want to query documents based on one or more properties at run time that
> are dynamic and variable.
> For lack of a better example:
> 
> SELECT * FROM mytable WHERE col1='A' and col2='B and col3='c'
> 
> but imagine that sometimes I only have one or two or no columns to query by,
> or 3 or 8
> or I want to do WHERE col1='A' and col1='Z'.
> 


github.com/rnewson/couchdb-lucene could help.
Mime
View raw message