Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8666F104AD for ; Tue, 8 Oct 2013 11:02:27 +0000 (UTC) Received: (qmail 48760 invoked by uid 500); 8 Oct 2013 11:02:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 48674 invoked by uid 500); 8 Oct 2013 11:02:25 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 48664 invoked by uid 99); 8 Oct 2013 11:02:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 11:02:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eugene.khrustalev@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-we0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 11:02:18 +0000 Received: by mail-we0-f172.google.com with SMTP id q58so3875824wes.17 for ; Tue, 08 Oct 2013 04:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=U1GYQlXCo/xKZYoEIRFDVZJYiQ+CUPFMcdGhojEGlO4=; b=VL8eHpvv2T3AhreU71HTdNm2HmgDTxowgNLZ/iwIohkfNCHAXRAHETVeZy7xzARyeE sP9BVDjqk8Ws1rvLmGmNcHSF7WMO+7+GPdV1F1tnINu01EyQBrr6Y8TVMdZp59QQ32oy BX8jsqf1Sg7ZQpnlIs+GaDJOJkljoe9ljgCjGfzBIAkrYnJdcWO4nBOYeDstjrgoBUbS 8UH/lg1pg4QYYZVSiwK6M1hQQe748goa5qrtJZLCbQdPuOuBXJa/8sAN58MtpQEemu71 C4W1hMcxCdqhmsmfizOaNyvYL1q4wW91edVbdLezzybPNFv2FqHCKGIhxUfp4vkbE8n1 oW8A== X-Received: by 10.180.107.104 with SMTP id hb8mr1103477wib.0.1381230118441; Tue, 08 Oct 2013 04:01:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.189.169 with HTTP; Tue, 8 Oct 2013 04:01:38 -0700 (PDT) In-Reply-To: <1381229402.20212.YahooMailNeo@web121003.mail.ne1.yahoo.com> References: <1381229402.20212.YahooMailNeo@web121003.mail.ne1.yahoo.com> From: =?UTF-8?B?0KXRgNGD0YHRgtCw0LvQtdCyINCV0LLQs9C10L3QuNC5?= Date: Tue, 8 Oct 2013 15:01:38 +0400 Message-ID: Subject: Re: username,password To: user@couchdb.apache.org, Ashraf Janan Content-Type: multipart/alternative; boundary=e89a8f234ce590199e04e838b289 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f234ce590199e04e838b289 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable function(doc) { if(doc.type =3D=3D=3D "student") emit({password: doc.password, name: doc.name}, doc); } http://URL/DBname/_design/authentication/_view/name _of_view?key=3D{"key.password":"123", "name": "key.name"} 2013/10/8 Ashraf Janan > Thank you so much Xp, > I tried also: > function(doc) { > if(doc.type =3D=3D=3D "student") > emit([doc.name,doc.password], doc); > } > > http://URL/DBname/_design/authentication/_view/name of > view?key=3D["username","password"] > > > and its worked. > > But when i tried to do the following : > function(doc) { > if(doc.type =3D=3D=3D "student") > emit({password=3D doc.password, name =3D doc.name}, doc); > } > > In this case i don't know , how can write a query with Url . > I tried the following b it its not worked: > http://URL/DBname/_design/authentication/_view/name of view?name =3D > key.name&password=3Dkey.password > > > How can i fix that ? please > > Best regards > Ashraf --=20 -- =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E8=D2=D5=D3=D4=C1=CC=C5=D7 =E5=D7=C7=C5=CE=C9=CA --e89a8f234ce590199e04e838b289--