incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: Matching docs which values ending with a specific string
Date Wed, 12 Feb 2014 23:17:45 GMT
On Wed, Feb 12, 2014 at 11:35 PM, Tito Ciuro <tciuro@mac.com> wrote:
> Hello,
>
> I have a database with documents with the following format:
>
> {
>     "_id" : "12345",
>     "location" : <some_city>.<some town>
> }
>

you can emit[<some_city>,<some town>] *and* [<some town>, <some_city>]
 so you can query either by city or town.


- benoit

Mime
View raw message