|
@@ -21,7 +21,6 @@
|
21
|
21
|
(format nil "tag/~a" (index-slug object)))
|
22
|
22
|
|
23
|
23
|
(defmethod discover ((doc-type (eql (find-class 'tag-index))))
|
24
|
|
- (purge-all (class-name doc-type))
|
25
|
24
|
(let ((content (by-date (find-all 'post))))
|
26
|
25
|
(dolist (tag (all-tags))
|
27
|
26
|
(add-document (index-by-tag tag content)))))
|
|
@@ -44,7 +43,6 @@
|
44
|
43
|
(format nil "date/~a" (index-slug object)))
|
45
|
44
|
|
46
|
45
|
(defmethod discover ((doc-type (eql (find-class 'month-index))))
|
47
|
|
- (purge-all (class-name doc-type))
|
48
|
46
|
(let ((content (by-date (find-all 'post))))
|
49
|
47
|
(dolist (month (all-months))
|
50
|
48
|
(add-document (index-by-month month content)))))
|
|
@@ -67,7 +65,6 @@
|
67
|
65
|
(format nil "~d" (index-slug object)))
|
68
|
66
|
|
69
|
67
|
(defmethod discover ((doc-type (eql (find-class 'numeric-index))))
|
70
|
|
- (purge-all (class-name doc-type))
|
71
|
68
|
(let ((content (by-date (find-all 'post))))
|
72
|
69
|
(dotimes (i (ceiling (length content) 10))
|
73
|
70
|
(add-document (index-by-n i content)))))
|