Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2016-11-21

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

All times shown according to UTC.

Time Nick Message
02:49 Tempesta joined #metacpan
02:51 oiami joined #metacpan
07:38 nakiro joined #metacpan
07:55 oiami joined #metacpan
08:22 [Tux] joined #metacpan
09:19 Relequestual joined #metacpan
09:29 neilb_ joined #metacpan
09:52 neilb joined #metacpan
09:59 osfabibisi joined #metacpan
10:08 oiami joined #metacpan
10:26 neilb_ joined #metacpan
10:49 edward joined #metacpan
11:11 neilb joined #metacpan
13:08 alexbyk joined #metacpan
15:02 oiami joined #metacpan
15:19 TBSliver joined #metacpan
15:58 metacpan joined #metacpan
15:58 metacpan [metacpan-api] jberger created jberger/web_search_endpoint_rename_controller (+1 new commit): https://git.io/vXAW9
15:58 metacpan metacpan-api/jberger/web_search_endpoint_rename_controller ff2c667 Joel Berger: rename controller from ::WebLike to ::Web
15:58 metacpan left #metacpan
16:24 kentnl joined #metacpan
17:40 karjala Bug: on this page https://github.com/metacpan/metacpan-api/blob/master/docs/API-docs.md there's a link that says " ElasticSearch scan documentation.", and when I click it I get error 404
17:43 karjala v1 has no POST queries anymore, does it? But that's not what that API-docs.md page saya
17:43 karjala s
17:43 karjala sorry, I got confused. I was wrong.
17:54 karjala What's the correct host to access the API? is it fastapi.metacpan.org/v1 or api.metacpan.org/v1 ?
18:05 trs karjala: fastapi.metacpan.org/v1
18:06 karjala on the API-docs.md page, there's api.metacpan.org mentioned somewhere at least once
18:06 karjala you might want to fix
18:08 metacpan joined #metacpan
18:08 metacpan [metacpan-api] tsibley pushed 1 new commit to master: https://git.io/vXA1D
18:08 metacpan metacpan-api/master 0779bf9 Thomas Sibley: Correct one remaining instance of api.metacpan.org → fastapi.metacpan.org
18:08 metacpan left #metacpan
18:08 oalders karjala: doc patches are also gratefully accepted
18:09 trs karjala: fixed.
18:09 metacpan joined #metacpan
18:09 metacpan [metacpan-api] tsibley pushed 1 new commit to master: https://git.io/vXAMq
18:09 metacpan metacpan-api/master d716031 Thomas Sibley: curl doesn't follow redirects by default, so specify https:// specifically...
18:09 metacpan left #metacpan
18:09 karjala oalders: correct
18:09 oalders karjala: https://github.com/metacpan/metacpan-examples#upgrading-from-v0
18:10 oalders That should cover most points of migrating to v1
18:10 karjala thanks oalders
18:10 oalders :)
18:10 oalders There could be errors in that doc as well.  I just did most of it at the hackathon last week
18:21 karjala I'm trying one of my queries in the api explorer, and the output is enormous. I need to cut it down a bit. Can someone help?
18:21 karjala the query is /v1/search/autocomplete?q=Mojoli&fields=documentation
18:22 karjala All I want is the documentation field (i.e. the name, like "Mojolicious")
18:22 karjala And I get POD back
18:22 karjala see here:
18:22 karjala https://explorer.metacpan.org/?url=%2Ffile%2F_search&content={%0D%0A++++++++%22query%22%3A+{%0D%0A++++++++++++%22match_all%22%3A+{}%0D%0A++++++++}%2C%0D%0A++++++++%22size%22%3A+10%2C%0D%0A++++++++%22fields%22%3A+[%22path%22%2C+%22name%22%2C+%22directory%22]%2C%0D%0A++++++++%22filter%22%3A+{%0D%0A++++++++++++%22and%22%3A+[%0D%0A++++++++++++++++{%22term%22#/55
18:22 karjala 21729
18:23 karjala you need to connect the little number (21729) with the previous URL, because it got split
18:24 karjala hm, i think this API explorer posts instads of GETs. I wanted to do a GET
18:25 oalders karjala: that's a bug in v0.  could you open an issue for that?
18:25 karjala why do you say it's in v0? Doesn't my query go to v1?
18:25 oalders actually, that's not a bug
18:26 oalders sorry, i meant v1
18:26 oalders the problem is you're getting _source along with the field you asked for
18:26 karjala yes
18:26 karjala it's not a bug after all?
18:26 karjala is there a way to block _source?
18:27 oalders i don't have the answer on how to exclude _source.  mickey? ^^
18:30 oalders karjala: we can just clean that output up on the way out.  could you open a ticket?
18:30 oalders The fix will be applied in MetaCPAN::Server::Controller::Search::Autocomplete
18:30 karjala okay! Is it Perl who is answering my queries? Or the ES server directly?
18:30 karjala ok
18:31 haarg we can limit the output through the ES query
18:34 karjala posted: https://github.com/metacpan/metacpan-api/issues/577
18:34 karjala there's something here about it: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.html
18:35 karjala thanx
18:38 oalders karjala++
18:55 jberger karjala: just a question: are you using the autocomplete search as an autocomplete or are you using it because the web-like search isn't available from the api?
18:58 karjala jberger: I'm using it for autocompletion purposes
18:59 karjala in v0 i didn't have the _source in the results
19:00 karjala jberger: you can check my search form here: https://www.perlmodules.net/
19:04 jberger ah ok
19:04 jberger partially my reasoning came because I've been working on moving the web site's search to the api
19:04 jberger and I was wondering if you were using the autocomplete rather than a theoretical search endpoint
19:04 jberger but you're fine
19:14 metacpan joined #metacpan
19:14 metacpan [metacpan-api] haarg created haarg/slim-autocomplete (+1 new commit): https://git.io/vXAFN
19:14 metacpan metacpan-api/haarg/slim-autocomplete 5314fee Graham Knop: only include listed fields in autocomplete output
19:14 metacpan left #metacpan
19:30 metacpan joined #metacpan
19:30 metacpan [metacpan-api] jberger pushed 1 new commit to jberger/web_search_endpoint: https://git.io/vXAxf
19:30 metacpan metacpan-api/jberger/web_search_endpoint d7223e3 Joel Berger: rename controller from ::WebLike to ::Web
19:30 metacpan left #metacpan
19:31 metacpan joined #metacpan
19:31 metacpan [metacpan-api] jberger deleted jberger/web_search_endpoint_rename_controller at ff2c667: https://git.io/vXAxn
19:31 metacpan left #metacpan
20:06 metacpan joined #metacpan
20:06 metacpan [metacpan-api] haarg force-pushed haarg/slim-autocomplete from 5314fee to 36bdb1e: https://git.io/vXxfz
20:06 metacpan metacpan-api/haarg/slim-autocomplete 36bdb1e Graham Knop: only include listed fields in autocomplete output
20:06 metacpan left #metacpan
23:24 oiami joined #metacpan
23:37 oiami1 joined #metacpan

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