mirror of
https://github.com/sys-nyx/red-arch.git
synced 2025-05-06 08:45:31 -04:00
added search indexing with lunr.js to redarch.py
This commit is contained in:
parent
a4cf65944a
commit
2fcf0fc5bb
1 changed files with 0 additions and 2 deletions
|
@ -31,8 +31,6 @@ def get_lunr_posts_index(subreddits: list[dict]):
|
||||||
|
|
||||||
chunks = [to_index[i * chunk_size:(i + 1) * chunk_size] for i in range((len(to_index) + chunk_size - 1) // chunk_size )]
|
chunks = [to_index[i * chunk_size:(i + 1) * chunk_size] for i in range((len(to_index) + chunk_size - 1) // chunk_size )]
|
||||||
for chunk in chunks:
|
for chunk in chunks:
|
||||||
for t in chunk:
|
|
||||||
print(t, '\n\n\n')
|
|
||||||
idxs.append(lunr(
|
idxs.append(lunr(
|
||||||
ref='id',
|
ref='id',
|
||||||
fields=[
|
fields=[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue