Skip to content

Commit 9c35fc9

Browse files
committed
Don't create index if missing
1 parent 9377247 commit 9c35fc9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api-server.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
(defparameter *index* (make-instance 'montezuma:index
1212
:path "/home/marian/src/quicklisp-docs-index"
13-
))
13+
:create-if-missing-p nil))
1414

1515
(defun parse-document (doc)
1616
(flet ((docvalue (field)

quicklisp-apropos.lisp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
(defun ensure-index ()
2323
(when (null *index*)
24-
(setf *index* (make-instance 'montezuma:index :path *index-path*))))
24+
(setf *index* (make-instance 'montezuma:index :path *index-path*
25+
:create-if-missing-p nil))))
2526

2627
(defun format-query (query)
2728
(when (stringp query)

0 commit comments

Comments
 (0)