Package org.sf.mustru.search

Examples of org.sf.mustru.search.SearchQuery


  }
 
  public void ttestQuery()
  {
   System.out.println("Started testQuery");
   SearchQuery sq = new SearchQuery();
   String query = "money";
   System.out.println("Query: " + query);
   Hits hits = sq.getHits(query); sq.dumpHits(hits, false);
   String[] results = sq.getResults();
   for (int i = 0; i < results.length; i++)
    System.out.println(i + ": " + results[i]);
  
   System.out.println("Ended testQuery");
  }
View Full Code Here


  Constants.setDbt(dbt);
 
  try { is = SearchTools.getSearcher(Constants.getINDEXDIR(), false); }
  catch (IOException ie) { logger.error("IO Error " + ie.getMessage() ); }

  sQuestion = new SearchQuestion(); sQuery = new SearchQuery();
  try { dprops = new Properties(); dprops.load(new FileInputStream(Constants.DOCTYPES_FILE)); }
  catch (IOException e)  { logger.error("Could not read " + Constants.DOCTYPES_FILE + " " + e.getMessage()); }
}
View Full Code Here

TOP

Related Classes of org.sf.mustru.search.SearchQuery

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.