I'm not sure whether this is the right place to ask, but...
Me and a group of partners are developing a search engine; the basic idea is that a C++ module is invoked from a Linux console before starting to process queries: that is the indexing module, and it prepares all the data and data structures necessary to rsolve queries. That's alright: the problem is that we cannot find a way to solve the queries using CGI (the thechnology recommended by our teachers...for its simplicity - liars!): the queries are inputted via a HTML form, which sends it to a server using CGI, and that server invokes the query solving program. The problem is that, with the CGI library we are using (cgivars, I think), the module is called everytime the "search" button in the HTML form is pressed, and that is too inefficient, since the data structures for the queries are loaded into memory every time. How can we go about this in the most simple way? We were advised to use sockets and multithreading, but honestly we don't have enough time for that... We are sure there is an easier way to do it using HTML and CGI... Any kind of advice will be welcome.
Thanks in advance,
Dario
Me and a group of partners are developing a search engine; the basic idea is that a C++ module is invoked from a Linux console before starting to process queries: that is the indexing module, and it prepares all the data and data structures necessary to rsolve queries. That's alright: the problem is that we cannot find a way to solve the queries using CGI (the thechnology recommended by our teachers...for its simplicity - liars!): the queries are inputted via a HTML form, which sends it to a server using CGI, and that server invokes the query solving program. The problem is that, with the CGI library we are using (cgivars, I think), the module is called everytime the "search" button in the HTML form is pressed, and that is too inefficient, since the data structures for the queries are loaded into memory every time. How can we go about this in the most simple way? We were advised to use sockets and multithreading, but honestly we don't have enough time for that... We are sure there is an easier way to do it using HTML and CGI... Any kind of advice will be welcome.
Thanks in advance,
Dario
Comment