Package org.apache.solr.common

Examples of org.apache.solr.common.SolrInputDocument.addField()


      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));
      doc.addField("logtype", this.bolt.type);
      doc.addField("groupName", key.list[1]);
      doc.addField("nodename",  key.list[2]);
      doc.addField("dns_ip",  key.list[3]);
      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
View Full Code Here


      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));
      doc.addField("logtype", this.bolt.type);
      doc.addField("groupName", key.list[1]);
      doc.addField("nodename",  key.list[2]);
      doc.addField("dns_ip",  key.list[3]);
      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
     
View Full Code Here

      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));
      doc.addField("logtype", this.bolt.type);
      doc.addField("groupName", key.list[1]);
      doc.addField("nodename",  key.list[2]);
      doc.addField("dns_ip",  key.list[3]);
      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
     
      doc.addField("datanum_a", val.cnt);
View Full Code Here

      doc.addField("hour", formatHourStr.format(d));
      doc.addField("logtype", this.bolt.type);
      doc.addField("groupName", key.list[1]);
      doc.addField("nodename",  key.list[2]);
      doc.addField("dns_ip",  key.list[3]);
      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
     
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
View Full Code Here

      doc.addField("logtype", this.bolt.type);
      doc.addField("groupName", key.list[1]);
      doc.addField("nodename",  key.list[2]);
      doc.addField("dns_ip",  key.list[3]);
      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
     
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
View Full Code Here

      doc.addField("groupName", key.list[1]);
      doc.addField("nodename",  key.list[2]);
      doc.addField("dns_ip",  key.list[3]);
      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
     
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
      boolean needCommit=false;
View Full Code Here

      doc.addField("dns_ip",  key.list[3]);
      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
     
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
      boolean needCommit=false;

      synchronized (doclistLock) {
View Full Code Here

      doc.addField("nodegroup",  key.list[4]);
      doc.addField("product_name",  key.list[5]);
      doc.addField("site",  key.list[6]);
     
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
      boolean needCommit=false;

      synchronized (doclistLock) {
          doclistBuffer.add(doc);
View Full Code Here

   
  @Override
  public void expire(BoltStatKey key, BoltStatVal val) {
    Date d=new Date(60000+(Long) key.list[0]);
     SolrInputDocument doc=new SolrInputDocument();
      doc.addField("thedate", formatDay.format(d));
      doc.addField("mdrillPartion", formatPartion.format(d));
      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));
View Full Code Here

  @Override
  public void expire(BoltStatKey key, BoltStatVal val) {
    Date d=new Date(60000+(Long) key.list[0]);
     SolrInputDocument doc=new SolrInputDocument();
      doc.addField("thedate", formatDay.format(d));
      doc.addField("mdrillPartion", formatPartion.format(d));
      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));
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.