From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-dev+bounces-51714-garchives=archives.gentoo.org@lists.gentoo.org>) id 1SUoCN-0007i3-AL for garchives@archives.gentoo.org; Thu, 17 May 2012 00:04:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B696DE09BA; Thu, 17 May 2012 00:03:46 +0000 (UTC) Received: from mail-gg0-f181.google.com (mail-gg0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 86F7CE0920 for <gentoo-dev@lists.gentoo.org>; Thu, 17 May 2012 00:02:47 +0000 (UTC) Received: by ggnv5 with SMTP id v5so1546559ggn.40 for <gentoo-dev@lists.gentoo.org>; Wed, 16 May 2012 17:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=x2KhgtBSFBPFRQiGbX+sin1TOvCUwXXq8CgX5hTS2do=; b=jmM2f+wuskTOnDgssw6oPh/9sqTnxj6ZOpuAMtCC2Y4jE2eAnEyi/OFsyIlS6fFZ/t UNZ9xrWLvaUwC0S+IOvudsg8JRp8Czjb9AALkW8mDWsPd1TywC97ZANZj3Gei4hyQxpb hAMG700byjS+ogCyo+SmXCjjHRsqAHMN2uohan/2mjkk5XfSZGm/W2XGS99/1O/z0BoF 71LI8YNecwJPbRkir6bHbFyvil0C4MZ1KpbRhk72JSScYLnCIRUtRpViLUmTXufBdygu xiKlY5Ryk6UMxDyUNoRkeygB6IzbKsCi32QDgwAfUJtOibQv+a/DM7jEo7vOfdrKxDqa Twcg== Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.50.191.194 with SMTP id ha2mr11784862igc.69.1337212966919; Wed, 16 May 2012 17:02:46 -0700 (PDT) Received: by 10.42.197.5 with HTTP; Wed, 16 May 2012 17:02:46 -0700 (PDT) In-Reply-To: <20120512194328.GA24725@veller.net> References: <CAATnKFAvR6Tio7zrAK9bA7nPz1vgXFS4emm6n_nifrRkcDm=ug@mail.gmail.com> <CAHR064j6wOdnsk_gcSszUaRADjRx0CcyY0DGx-uvvv2Gw_Asaw@mail.gmail.com> <CAATnKFCvAvv=8HH=46FE7DRVdeBuf154ywSaTTEL-3cdyMgcEQ@mail.gmail.com> <CAHR064iQVmJ4-tJKfqHBo7y4m6S1aCqY4XB--cyF_P2+NhCT2Q@mail.gmail.com> <CAATnKFCmQW8BvMFGmdbwZ3UFNyPuK7XKcfY04DKzmiKfCPMGTQ@mail.gmail.com> <20120420133409.GE24273@falgoret> <CAATnKFCGaj_0iogV8--hDSSaRwqppx7dD6mLHU__MHDuLwWS_w@mail.gmail.com> <CAHR064gd7-hrV2oEEs_vQ49QLFASmN43eOkJXVW=+qq5eNizxA@mail.gmail.com> <CAATnKFAA9hxsqc-NDGV8NXOPW1sqTARhXGKvjv2W+mPmDbPR9A@mail.gmail.com> <20120421091845.GF24273@falgoret> <20120512194328.GA24725@veller.net> Date: Thu, 17 May 2012 12:02:46 +1200 Message-ID: <CAATnKFB8kxzMrNyyEET14P9zUKqSAZ+5X10tzMO6Txd9nB0fXA@mail.gmail.com> Subject: Re: [gentoo-dev] Re: RFC: Add new remote-id types in metadata.dtd From: Kent Fredric <kentfredric@gmail.com> To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f9ae1862-8874-4e6a-b219-71231e1931bc X-Archives-Hash: e78b971ea24f707cdf804060b6b78bc7 On 13 May 2012 07:43, Torsten Veller <tove@gentoo.org> wrote: > * Corentin Chary <corentin.chary@gmail.com>: >> On Sat, Apr 21, 2012 at 03:33:18PM +1200, Kent Fredric wrote: >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { "term": { "status= ":"latest"} }, >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { "term": { "module= .authorized":"true"}} > > What does this mean? > - "latest"? this term looks like maintenance work. > - what is "authorized"? "latest" means that it will fetch metadata for whatever is deemed the most recent non-dev release, which is really the only sane option to go for if you want a list of modules that currently pertain to the distribution. You could request *all* releases and then find a union of elements ... but that would be both erroneous and very time consuming. > It doesn't even list "Moose" for Moose? Its probably falling outside the initial 10 results, I forgot it did that, > 02packages.details.txt.gz lists 72 package names for Moose-2.0602. > Need to bolt on a { "size": 100 } to the query to expand how may results it will return. curl -XPOST 'http://api.metacpan.org/module/_search' -d ' { "fields": [ "module.name", "release" ], "query": { "constant_score": { "filter" : { "and" : [ { "term": { "distribution":"Moose" }= }, { "term": { "status":"latest"} }, { "term": { "mime":"text/x-script.perl-module"}}, { "term": { "indexed":"true"}}, { "term": { "module.authorized":"tru= e"}} ] } } }, "size": 100 } ^ that | grep module.name | wc -l # 83 --=20 Kent perl -e=C2=A0 "print substr( \"edrgmaM=C2=A0 SPA NOcomil.ic\\@tfrken\", \$_= * 3, 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" http://kent-fredric.fox.geek.nz