-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searching in the content of posts #558
base: master
Are you sure you want to change the base?
Conversation
Thanks! It's a great addition to HTMLy! |
I did a quick test of your code on my, nearly empty, HTMLy installation, because I'm new to HTMLy since today.
|
For me, such a thing does not occur. There is also a description field in the file with the content. If you don't enter anything in it, HTMLy will put the beginning of the content there. Maybe this is it?
I didn't notice it. 🤦♂️ Without it, pagination of search results does not work properly. I will post a fix right away - thanks. |
You're right. It is the meta description field. So it's okay. |
thanks! |
Hello, Adding each content to the array when rebuilding the index if we have lots of posts it will have big effect in performance. So the solution, for example, let say we add/edit post A, this post A will automatically added to the search index, if visitor/bot visiting the page it will added to the index either. And there is a separate admin page to manage this, for example rebuilt the search index per specific posts manually, check which posts have not been indexed etc. and for this search index, it should not in cache folder but content/data folder, similar to views.json. Edit: separate mean eg. |
I added the content of the posts to the
index-sorted.txt
file. The content of multiple files is read when creating the cache in functionrebuilt_cache
And I added content to the search function
get_keyword
: