Displaying 1 result from an estimated 1 matches for "ftquery".
2014 Jan 21
2
seg fault on search
I have written a very simple function to return the match count based on the simplesearch.cc code. It fails with a seg fault. The relevant code is:
--------------------
int ftQuery(char* qs, const char* dbname,char* results, int msize) {
        long            docid;
        char*           op; 
        char            fullDB[1024];
        string          queryString;
        sprintf(fullDB,"/var/lib/fulltext/%s",dbname);
        queryString=qs;
    try {...