NYCPHP Meetup

NYPHP.org

[nycphp-talk] Search function

David Krings ramons at gmx.net
Fri Sep 19 20:30:11 EDT 2008


(Margaret) Michele Waldman wrote:
> Does anyone know of a function or code I could use to quickly search my 
> site for a document?
> 
>  
> 
> I was thinking I could write a php function to open all of the files and 
> search for a specific string.
> 
>  
> 
> But, I’m guessing it’s already been done with a better implementation.

I made good experience using swish-e. It is fairly easy to figure out and you 
can make some simple calls against the index and display the results the way 
you like. One nice thing about swish-e is that it indexes more than just flat 
files, but also PDFs.

http://swish-e.org/


David



More information about the talk mailing list