Skip to content
Snippets Groups Projects
Searcher.cpp 725 B
Newer Older
  • Learn to ignore specific revisions
  • //
    // Created by Jake Close on 3/7/18.
    //
    
    
    #include "Searcher.h"
    
    #include <iostream>
    
    vcday's avatar
    vcday committed
    
    
    using namespace std;
    
    /*
     * Searchs the index for the query
     *
     *
     */
    
    
    void Searcher::search ( )
    
    	if (CompleteQuery == "-quit" ||CompleteQuery == "-q" )
    
    		{
    		cout << "Thank you for using C++lue search engine" << endl;
    
    vcday's avatar
    vcday committed
    		exit( 0 );
    
    	else if ( CompleteQuery == "-help")
    
    		{
    		cout << "Manual" << endl;
    
    		queryParser.parse(CompleteQuery);
    		ISRContainer container = ISRContainer( queryParser.queryTree );
    		container.Solve( );
    
    void Searcher::printResults ( )
    
    	{
    	cout << " Generated XXX results in about XXX seconds " << endl;
    
    
    	return;
    	}