incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Coallier <david.coall...@gmail.com>
Subject Re: Complex filter with permanent view
Date Fri, 29 Jan 2010 18:16:23 GMT
On 29 January 2010 11:36, Дмитрий Курилов <me@dmkonweb.ru> wrote:
> Hi folks,
>
> I have a database that contains docs like this one:
> {
>    'type': 'order',
>    'customer_name': 'John F. Smit',
>    'order_date': '2009-12-18',
>    'manager_id': 'some id',
>    'partner_order': 'ZX-M-777218883',
>    'other_fields': 'There are other fields in document'
> }
>
> I need all documents that match conditions received from web-form (so
> conditions are unknown). For example:
>  * customer_name string CONTAINS 'Smit'
>  * order_date date BETWEEN '2009-12-01' and '2009-12-31'
>  * manager_id string IS 'manager-21'
>  * partner_order CONTAINS '77232'
>


I would recommend/consider looking at couchdb-lucene
(http://github.com/rnewson/couchdb-lucene)

-- 
Slan,
David

Mime
View raw message