Something is wrong with the custom_score query. metacpan is rejecting the request whenever the custom_score query is passed. I think it may also have something to do with the scripting language settings ( ​http://www.elasticsearch.org/guide/reference/modules/scripting/ ).As noted in the link the default language for scripting in elasticsearch is mvel. This change can be a workaround until someone figures out how make the custom_score query work.

<bowtie> itcharlie, try finding this https://metacpan.org/module/Tiny::Tiny or am I asking to much and out of scope :)
<itcharlie> bowtie: via padre cpan explorer?
<bowtie> itcharlie, yes, sorry
<itcharlie> Yes it works
<itcharlie> but the top result is not Try::Tiny
<itcharlie> which is what probably the contest_score portion of the query was doing.
<bowtie> O, thats why I could not see it :)
<itcharlie> :(
<bowtie> it do not understand elastic search, so I am not able to help you out here
<itcharlie> the limit of the search is set to 20 results
<itcharlie> and if I understand correctly the contest_score will sort the results based on Module character length
<itcharlie> so I guess my fix will not work so great when you have more than 20 results
<itcharlie> :(
<itcharlie> sorry about that I really could test much of it.
<bowtie> but now you have a test case :)
<itcharlie> you should post that in the ticket so I won't forget. maybe there is another way to sort the results