|
@@ -8,7 +8,7 @@ from whoosh.fields import Schema, ID, TEXT, DATETIME
|
8
|
8
|
from whoosh.qparser.dateparse import DateParserPlugin
|
9
|
9
|
from whoosh import index, qparser
|
10
|
10
|
|
11
|
|
-from pages.page import page_wrapped
|
|
11
|
+from pages.page import page_wrapped, full_path_all_pages
|
12
|
12
|
|
13
|
13
|
logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
|
14
|
14
|
|
|
@@ -38,7 +38,7 @@ def create_index():
|
38
|
38
|
|
39
|
39
|
|
40
|
40
|
def rebuild_index(ix):
|
41
|
|
- page_path = fstools.dirlist(settings.PAGES_ROOT, rekursive=False)
|
|
41
|
+ page_path = full_path_all_pages()
|
42
|
42
|
for path in page_path:
|
43
|
43
|
pw = page_wrapped(None, path)
|
44
|
44
|
add_item(ix, pw)
|