Package org.apache.solr.common

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


     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("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
View Full Code Here


      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("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
View Full Code Here

      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("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
      doc.addField("namemodle",  key.list[3]);
View Full Code Here

      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
      doc.addField("namemodle",  key.list[3]);
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
View Full Code Here

      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
      doc.addField("namemodle",  key.list[3]);
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
View Full Code Here

      doc.addField("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
      doc.addField("namemodle",  key.list[3]);
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
      boolean needCommit=false;
View Full Code Here

      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
      doc.addField("namemodle",  key.list[3]);
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
      boolean needCommit=false;
      synchronized (doclistLock) {
View Full Code Here

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
      doc.addField("namemodle",  key.list[3]);
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
      boolean needCommit=false;
      synchronized (doclistLock) {
          doclistBuffer.add(doc);
View Full Code Here

      doc.addField("logtype", this.bolt.type);
      doc.addField("pid", key.list[1]);
      doc.addField("groupName", key.list[2]);
      doc.addField("namemodle",  key.list[3]);
      doc.addField("datanum_a", val.cnt);
      doc.addField("datanum_b", val.cntnonclear);
     
      boolean needCommit=false;
      synchronized (doclistLock) {
          doclistBuffer.add(doc);
          needCommit=doclistBuffer.size()>200;
View Full Code Here

   
  @Override
  public void expire(BoltStatKey key, AccessStatVal 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.