Welcome Guest, Not a member yet? Register   Sign In
If you have to code a search function for a blog, what will you do?
#1

[eluser]Isern Palaus[/eluser]
Hello,

I am coding a blog that I would like to release as a example on how to code with CodeIgniter, oriented for newbie coders. I'm also migrating my Wordpress blog to CodeIgniter and I'm writing entries in Spanish on how I'm doing it (I will use the future blog application).

Thinking about the structure and what will have my future blog application I stopped on the search function. Has any one developed a function like that for an CodeIgniter application? I know I can search on the titles with LIKE %term% or in the text, or by categories, etc. but what is a professional option for a search function?

Or... go for Zend_Search_Lucene with an index to search?

Thank you in advance!
#2

[eluser]n0xie[/eluser]
I would recommend using google site search. Unless the (time-) investment in Lucene is valid (which I _highly_ doubt for a blog) google site search is Good Enough ™.
#3

[eluser]CroNiX[/eluser]
I've used google and lucene. Both are fairly easy. Prefer lucene. Theres a good article showing how to use it with CI somewhere.




Theme © iAndrew 2016 - Forum software by © MyBB