diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-01 06:30:37 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-01 23:27:54 +0000 |
commit | 7503aeb540af5afd5cb1b554b3c29f35f5fc918d (patch) | |
tree | a951f16abdeed74b97182c7b24b378a2bf02aeaa /lib/PublicInbox/Search.pm | |
parent | 11182cf3e95cf76bbaf3112311cf613755d1a86a (diff) | |
download | public-inbox-7503aeb540af5afd5cb1b554b3c29f35f5fc918d.tar.gz |
We can store :bytes and :lines in doc_data since we never sort or search by them. We don't have much use for the Date: stamp at the moment, either.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index de296e1a..ca389e32 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -8,12 +8,9 @@ use strict; use warnings; # values for searching -use constant DS => 0; # Date: header in Unix time -use constant NUM => 1; # NNTP article number -use constant BYTES => 2; # :bytes as defined in RFC 3977 -use constant LINES => 3; # :lines as defined in RFC 3977 -use constant TS => 4; # Received: header in Unix time -use constant YYYYMMDD => 5; # for searching in the WWW UI +use constant TS => 0; # Received: header in Unix time +use constant YYYYMMDD => 1; # for searching in the WWW UI +use constant NUM => 2; # NNTP article number use Search::Xapian qw/:standard/; use PublicInbox::SearchMsg; |