Camelia, the Perl 6 bug

IRC log for #metacpan, 2013-07-09

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:28 mo_ joined #metacpan
00:31 thaljef1 joined #metacpan
00:31 dsteinbrunner_ joined #metacpan
00:33 diegok joined #metacpan
00:33 Trelane joined #metacpan
00:33 castaway joined #metacpan
00:33 Kovensky joined #metacpan
00:33 danaj joined #metacpan
00:33 garu joined #metacpan
00:33 kablamo joined #metacpan
00:33 mst joined #metacpan
00:33 wreis joined #metacpan
00:33 andrefs joined #metacpan
00:33 phaylon joined #metacpan
00:33 kentaro joined #metacpan
00:33 omega joined #metacpan
00:33 mattp joined #metacpan
00:33 plu joined #metacpan
00:33 gshank joined #metacpan
00:33 sivoais joined #metacpan
00:33 tianon joined #metacpan
00:33 Khisanth joined #metacpan
00:33 idn joined #metacpan
00:33 trs joined #metacpan
00:33 genehack joined #metacpan
00:33 charsbar___ joined #metacpan
00:33 haarg joined #metacpan
00:33 nuba joined #metacpan
00:33 lestrrat joined #metacpan
00:33 burnersk joined #metacpan
00:33 ingy joined #metacpan
00:33 Mithaldu joined #metacpan
00:33 punytan joined #metacpan
00:33 BinGOs joined #metacpan
00:33 dpetrov joined #metacpan
00:33 bricas joined #metacpan
00:33 crazed- joined #metacpan
00:34 devin joined #metacpan
00:38 marcus joined #metacpan
00:43 jayallen joined #metacpan
00:49 preflex joined #metacpan
02:08 bowtie joined #metacpan
02:24 chansen joined #metacpan
03:39 jayallen joined #metacpan
03:55 preflex_ joined #metacpan
04:20 shmuel joined #metacpan
04:21 shmuel Hi all. a question: I'm using the query described in https://github.com/CPAN-API/cpan-api/issues/275
04:21 dipsy [ search to /v0/file is slow, even with release information · Issue #275 · CPAN-API/cpan-api · GitHub ]
04:22 shmuel is there a way to request multiple releases data at once?
04:23 shmuel the round-trip is the slowest thing it the chain, I think
04:26 oalders shmuel: you can change your "and" to an "or"
04:27 shmuel can I put multiple condition inside one 'term' hash?
04:29 oalders if you use terms rather than term, you can search for multiples
04:30 oalders {"terms" => {"author" => [ 'A', 'B', C'] }},
04:30 oalders but i'm not sure that's what you want
04:30 shmuel how about {"terms" => { "author" => 'SEMUELF', "release" => 'Dist-Surveyor-0.009' }},
04:30 shmuel ?
04:30 oalders http://www.elasticsearch.org/guid​e/reference/query-dsl/or-filter/
04:30 dipsy [ Or Filter | Reference Guide | Elasticsearch ]
04:31 shmuel or do I need to build tree of or-s and and-s?
04:31 oalders the latter
04:32 oalders i bit like SQL::Abstract
04:32 oalders *a bit
04:34 shmuel 500 Internal Server Error...
04:34 oalders i would guess the query is not quite right
04:35 shmuel oalders: do you have an example of "( a and b ) or (c and d)"?
04:35 oalders shmuel: let me check if i have that in the examples repo
04:37 oalders don't have one.  give me a few minutes and i'll push an example to the repo
04:38 shmuel SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[jfx4hS6WSjePEOl3aazFEA][cpan_v1][1]: SearchParseException[[cpan_v1][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"fields":["path","name","_source.module","​_source.stat.size"],"query":{"filtered":{"qu​ery":{"match_all":{}},"filter":{"or":["and",​[{"term":{"author":"SEMUELF"}},{"term":{"rel​ease":"Dist-Surveyor-0.009"}},{"term":{"mi
04:38 shmuel me":"text/x-script.perl-module"}}],"and",[{"te​rm":{"author":"SEMUELF"}},{"term":{"release":"​Dist-Surveyor-0.010"}},{"term":{"mime":"text/x​-script.perl-module"}}]]}}},"size":2500}]]]; nested: QueryParsingException[[cpan_v1] [_na] filter malformed, must start with start_object]; }{[jfx4hS6WSjePEOl3aazFEA][cpan_v1][4]: SearchParseException[[cpan_v1][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"fields":["path","name","_sou
04:38 shmuel rce.module","_source.stat.size"],"query":{"filt​ered":{"query":{"match_all":{}},"filter":{"or":​["and",[{"term":{"author":"SEMUELF"}},{"term":{​"release":"Dist-Surveyor-0.009"}},{"term":{"mim​e":"text/x-script.perl-module"}}],"and",[{"term​":{"author":"SEMUELF"}},{"term":{"release":"Dis​t-Surveyor-0.010"}},{"term":{"mime":"text/x-scr​ipt.perl-module"}}]]}}},"size":2500}]]]; nested: QueryParsingException[[cpan_v1] [_na] filter malformed, must st
04:38 shmuel art with start_object]; }{[jfx4hS6WSjePEOl3aazFEA][cpan_v1][3]: SearchParseException[[cpan_v1][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"fields":["path","name","_source.module","_sou​rce.stat.size"],"query":{"filtered":{"query":{"m​atch_all":{}},"filter":{"or":["and",[{"term":{"a​uthor":"SEMUELF"}},{"term":{"release":"Dist-Surv​eyor-0.009"}},{"term":{"mime":"text/x-script.per​l-module"}}],"and",[{"term":{"author":"SEMUEL
04:38 shmuel F"}},{"term":{"release":"Dist-Surveyor-​0.010"}},{"term":{"mime":"text/x-script​.perl-module"}}]]}}},"size":2500}]]]; nested: QueryParsingException[[cpan_v1] [_na] filter malformed, must start with start_object]; }]
04:38 oalders that would probably look better in a gist ;)
04:38 shmuel yeah.. :-)
04:38 shmuel it is one line anyway...
04:39 shmuel thanks. can you please ping me after you pushed the example?
04:42 grantm shmuel: http://bit.ly/185ishw <an example of "and" in metacpan explorer
04:42 dipsy [ MetaCPANExplorer ]
04:43 shmuel I'm looking for or-and example
04:43 grantm oh sorry - I missed that
04:44 shmuel (a and b) or (c and d)
04:53 oalders shmuel: https://github.com/CPAN-API/metacpan​-examples/blob/master/scripts/endpoi​nts/author/2-twitter-or-github-es.pl
04:54 dipsy [ metacpan-examples/scripts/endpoint​s/author/2-twitter-or-github-es.pl at master · CPAN-API/metacpan-examples · GitHub ]
04:54 * grantm has another try: http://bit.ly/16loxj5
04:54 shmuel oh, I need to wrap each 'and' in hashref.
04:55 oalders grantm++
04:55 oalders grantm: don't know if you've seen this http://explorer.metacpan.org/static/beta/index.htm
04:55 grantm oooooh shiny!
04:56 oalders mo's work :)
04:56 grantm with a built-in shortener
04:56 grantm http://explorer.metacpan.o​rg/#/8d434244102c907aabee
04:56 dipsy [ MetaCPANExplorer ]
04:57 shmuel oooooh shiny!
04:57 grantm :-)
04:58 grantm seems like the "fields" part is not being honored in the results
04:58 oalders it's not quite finished, but it's very easy to read
05:03 shmuel thanks for your help.
05:26 oalders :)
06:33 gshank joined #metacpan
06:47 jayallen joined #metacpan
07:18 shmuel_ joined #metacpan
07:18 shmuel_ bla. after all that work, something unexpected changed and I had to revert the changes. uff.
07:19 shmuel_ I think that I'll give this module a rest for a couple of months now.
07:25 dolmen joined #metacpan
07:45 theory joined #metacpan
08:14 daxim joined #metacpan
08:56 bouncy joined #metacpan
10:20 bowtie joined #metacpan
11:00 dsteinbrunner joined #metacpan
11:02 bowtie joined #metacpan
11:31 bowtie joined #metacpan
12:16 dpetrov_ joined #metacpan
12:26 bowtie joined #metacpan
13:18 bowtie_ joined #metacpan
13:25 bowtie joined #metacpan
13:25 genehack joined #metacpan
14:10 bowtie joined #metacpan
14:17 bowtie_ joined #metacpan
14:42 gshank joined #metacpan
15:05 bowtie joined #metacpan
15:05 metacpan joined #metacpan
15:05 metacpan [metacpan-examples01] none pushed 3 new commits to master: http://git.io/cpNl0A
15:05 metacpan metacpan-examples/master 6af80a6 Olaf Alders: Updates README.
15:05 metacpan metacpan-examples/master 4f13fab Olaf Alders: Add example to show who has favorited a dist.
15:05 metacpan metacpan-examples/master 0e4239d Olaf Alders: Adds scripts/endpoints/author/2​-twitter-or-github-es.pl.
15:05 metacpan left #metacpan
15:05 dipsy [ Comparing 376437eff0dd...0e4239d85c6c · CPAN-API/metacpan-examples · GitHub ]
15:06 * rwstauner added notifications for examples repo
15:09 bowtie_ joined #metacpan
15:24 oalders rwstauner++
15:46 bowtie joined #metacpan
15:50 bowtie_ joined #metacpan
15:59 theory joined #metacpan
17:22 bowtie joined #metacpan
17:23 bowtie_ joined #metacpan
17:39 bowtie joined #metacpan
17:48 bowtie_ joined #metacpan
18:07 jayallen joined #metacpan
19:38 bowtie joined #metacpan
19:47 bowtie_ joined #metacpan
20:28 theory joined #metacpan
20:54 bowtie joined #metacpan
20:54 bowtie_ joined #metacpan
21:26 kentnl_ joined #metacpan
21:39 bowtie_ joined #metacpan
21:39 bowtie joined #metacpan
21:45 alnewkirk joined #metacpan
22:03 alnewkirk joined #metacpan
23:35 alnewkirk joined #metacpan

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary