Package ivory.smrf.retrieval

Examples of ivory.smrf.retrieval.QueryRunner


    mNumHits = numHits;
  }

  public void runQueries() throws Exception {
    // initialize retrieval environment variables
    QueryRunner runner = null;
    try {
      runner = new BrokerQueryRunner(mBrokerAddress);
    } catch (Exception e) {
      e.printStackTrace();
    }

    for (String qid : mQueries.keySet()) {
      String rawQueryText = mQueries.get(qid);
      sLogger.info("query id:" + qid + ", query text:" + rawQueryText);
      runner.runQuery(qid, rawQueryText.split("\\s+"));
    }

    // where should we output these results?
    ResultWriter resultWriter = null;
    resultWriter = getResultWriter(mOutputFile, false);
View Full Code Here

TOP

Related Classes of ivory.smrf.retrieval.QueryRunner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.