Add count of times word appears on a site to index.
This commit is contained in:
parent
f36ab2fbfb
commit
d30397cefa
3 changed files with 12 additions and 3 deletions
|
|
@ -18,6 +18,7 @@ def search(query):
|
|||
q = q.lower()
|
||||
if q in index:
|
||||
result.append(index[q])
|
||||
# result.sort(reverse= True,key=lambda entry: int(entry.count))
|
||||
print(result)
|
||||
return result
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue