Package org.jzkit.search.util.QueryFormatter

Examples of org.jzkit.search.util.QueryFormatter.QueryFormatter.format()


  public IRResultSet evaluate(IRQuery q, Object user_info, Observer[] observers) {
    SOLRResultSet result = null;
    try {
      log.debug("Casting internal query tree using "+query_formatter);
      QueryFormatter formatter = (QueryFormatter) ctx.getBean(query_formatter);
      String query = formatter.format(q.getQueryModel().toInternalQueryModel(ctx));
      result = new SOLRResultSet(observers, base_url, query, code,field_lists, q);
      result.countHits();
      result.setStatus(IRResultSetStatus.COMPLETE);
    }
    catch ( Exception e ) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.