views:

88

answers:

2

I have a website which has about 200 to 300 static public pages. I am required to bring about some kind of search functionality on the website which will search all of its public pages. I don't want to use external tools like Google site search, etc. Is there a tool or open source code that will index the content and then display the search results? I am looking for a tool that will maintain its own index and run on the server along with the website. If I can add items to the index and manage it that would be a plus. I have looked at Zend Search Lucene, if there is a tool out there, I am hoping to use it before I make one myself.

+1  A: 

You can try -

Sphider is a lightweight web spider and search engine written in PHP, using MySQL as its back end database. It is a great tool for adding search functionality to your web site or building your custom search engine. Sphider is small, easy to set up and modify, and is used in thousands of websites across the world.

http://www.sphider.eu/

Rifat
+4  A: 
  • Zend_Search_Lucene is a very good choice. It is compatible with the Java version of Lucene (I mean the index files). It can index html documents, it's quite simple to use and configure and has a good documentation.

  • Using Solr as a service is an option as well.

  • Sphinx is another tool you might want to look at.

Emil Ivanov
All three tools Emil mentioned can probably do the job. I believe you should choose among them according to their learning curve for you (Zend_Search_Lucene complements an existing PHP code base, Solr is a stand-alone search server easy to set up; Sphinx I believe to be similar to Solr in the set up respect).
Yuval F