mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
Add indexing to update command and utilities
This commit is contained in:
parent
273c9d91c6
commit
caf4660ac8
3 changed files with 56 additions and 1 deletions
|
@ -115,7 +115,7 @@ from .logging_util import (
|
|||
printable_dependency_version,
|
||||
)
|
||||
|
||||
from .search import flush_search_index
|
||||
from .search import flush_search_index, index_links
|
||||
|
||||
ALLOWED_IN_OUTPUT_DIR = {
|
||||
'lost+found',
|
||||
|
@ -711,6 +711,7 @@ def update(resume: Optional[float]=None,
|
|||
if index_only:
|
||||
for link in all_links:
|
||||
write_link_details(link, out_dir=out_dir, skip_sql_index=True)
|
||||
index_links(all_links, out_dir=out_dir)
|
||||
return all_links
|
||||
|
||||
# Step 2: Run the archive methods for each link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue