Search through flat file databases on Windows and Unix servers?
Posted on 2002-07-05
I have a couple of flat file databases I need to search through, and also a directory, if it's not too hard. I was looking at Webmonkey at "Roll your own search engine", but it only dealt with Unix. I downloaded a few free scripts, but one just gave me the title linked to the page and the path. I got a second one and it did the title, url, and relavance. I liked it, but was perfectly satisfied with it. I used KSearch on Unix and loved it, but I couldn't get it to work at all on Windows. I then went back to the second script and it couldn't do the flat files. I need it to search a couple of flat files and if the words are found, return a script that calls the file. The file is seperated with |. Is that going to matter? Something that opens a file, dbfile.txt. If it finds a match, it returns script.cgi?open=dbfile. Then, there is a directory full of html files that would be nice if it could search. My question is, how would I go about doing this, indexing the html file directory and using the flat files as and index? What would I use to search to work on Unix and Windows, I know grep won't work.