Skip to content

Commit

Permalink
Put description & abstract info into ES
Browse files Browse the repository at this point in the history
I can't recall why we removed it, but it is now missing
in metacpan-web (+tests)
  • Loading branch information
mickeyn committed May 24, 2016
1 parent 72a38e9 commit 0bfdc75
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/MetaCPAN/Document/File.pm
Expand Up @@ -71,7 +71,8 @@ sub _build_section {
}

has abstract => (
is => 'ro',
required => 1,
is => 'ro',

# isa is commented as it affect the type mapping
# see https://github.com/CPAN-API/cpan-api/pull/484
Expand Down Expand Up @@ -173,10 +174,11 @@ whitespaces and POD commands.
=cut

has description => (
is => 'ro',
lazy => 1,
builder => '_build_description',
index => 'analyzed',
required => 1,
is => 'ro',
lazy => 1,
builder => '_build_description',
index => 'not_analyzed',
);

sub _build_description {
Expand Down

0 comments on commit 0bfdc75

Please sign in to comment.