Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #486 from CPAN-API/mickey/add_description_and_abst…
…ract_to_es

Put description & abstract info into ES
  • Loading branch information
ranguard committed May 24, 2016
2 parents 72a38e9 + 0bfdc75 commit f0e0ff0
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 f0e0ff0

Please sign in to comment.