LJSUP-17669: Login.bml form refactoring
[livejournal.git] / cgi-bin / LJ / Search / Document.pm
blob69714bb3b16119d07c9393d69389de77fe72d164
1 package LJ::Search::Document;
2 use strict;
3 use Carp qw ( croak );
5 # This represents a search document. Search document subclasses should
6 # be returned by the content_search_document hook.
8 sub new {
9 croak "Tried to instantiate LJ::Search::Client base class";
12 # id of document
13 sub id {}
15 # body of document
16 sub body {}
18 # date of document
19 sub date {}
21 # subject of document
22 sub subject {}
24 # list of fields in the document
25 sub fields {}
27 # returns if a field is a date field
28 sub is_date {}
30 # boost $field, $value
31 sub boost {}