Search how-to
How to enable users to search for text in your blog.
COREBlog 0.6b or higher is ZCatalog aware. You can find in your blog.
Requirements
- Zope 2.6.x or higher required. COREBlog search feature is based on ZCTextIndex.
- For users in no-ascii region - like Chinese,Korean etc., please install Language/character encode specific Splitter.
For users starts from 0.6b
First, you must create COREBlog instance and choose appropriate splitter.
When you create new COREBlog instance, you will see form for splitter. Please select appropriate splitter, and push add button.
Second, you must enable find form.
Go to ZMI(Zope Management Insterface), Go to your COREBlog ionstance, and click contents tab.
You can see modules folder, click it.
In index_html remove comment around <dtml-var search_form>. Then you can see search form in blog's right area.
That's all :-).
For users already uses COREBlog before 0.6b
Make sure you had installed Language/character encode specific Splitter
Go to ZMI(Zope Management Insterface), Go to your COREBlog ionstance, and click contents tab.
Select ZCTextIndexLexicon from add menu on top right. Create appropreate ZCTextindexLexicon. ID must be lexicon.
After that, click entries tab, push Recatalog button bellow. COREBlog recatalog all text in your blog.
Next, go to ZMI(Zope Management Insterface), Go to your COREBlog ionstance, and click contents tab.
Add DTMLMethod, named search_results
You can see modules folder, click it.
Add DTMLMethod, named searchform
In index_html add a line, <dtml-var search_form>. Then you can see search form in blog's right area.
You can test another Splitter, delete old one, add new one, and Recatalog.
Trouble shooting.
If you cannot find as you intend, please make sure followings.
Make sure your choise of splitter is right.
On ZMI, contents tab, you can see a object named lexicon. This is something like words holder. Click query tab on lexicon, you can see words to be find. If you cannot see anymore, your choise of Splitter might be wrong. Please try another one :-).
Make sure you can find using ZCatalog.
Please consult withhttp://www.zope.org/Documentation/How-To/ZCatalogTutorial
Have fun :-).