APISonar


org.apache.solr.core.SolrCore.log

> org > apache > solr > core > SolrCore > log
org APIs apache APIs solr APIs core APIs SolrCore APIs log APIs

Example 1
public static Query parseQuery(String qs, String defaultField, IndexSchema schema) {
    try {
      Query query = schema.getSolrQueryParser(defaultField).parse(qs);

      if (SolrCore.log.isTraceEnabled()) {
        SolrCore.log.trace("After QueryParser:" + query);
      }

      return query;

    } catch (ParseException e) {
      SolrCore.log(e);
      throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Error parsing Lucene query", e);
    }
  }