]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchMsg.pm
store less data in the Xapian document
[public-inbox.git] / lib / PublicInbox / SearchMsg.pm
index 3278802b8b6c683e7ec9627be52d1048fe3f2594..ab971e002d8a52846eaed9e83dacbab474e4f2d2 100644 (file)
@@ -45,12 +45,11 @@ sub to_doc_data {
                $self->cc,
                $oid,
                $mid0,
-               $self->{bytes},
-               $self->{lines}
+               $self->{bytes} || '',
+               $self->{lines} || ''
        );
 }
 
-
 sub load_from_data ($$) {
        my ($self) = $_[0]; # data = $_[1]
        (
@@ -92,7 +91,6 @@ sub load_doc {
 # :bytes and :lines metadata in RFC 3977
 sub bytes ($) { $_[0]->{bytes} }
 sub lines ($) { $_[0]->{lines} }
-sub num ($) { $_[0]->{num} ||= _get_term_val($_[0], 'XNUM', qr/\AXNUM/) }
 
 sub __hdr ($$) {
        my ($self, $field) = @_;