separte the doc.raw operation from the main.cc to reduce the coupling
add RegexSearchResultElementType in regex.h to reduce the coupling
can send url and docid to php-cgi(portal
add seekset operation to doc.raw file