@Override public void processAdd(AddUpdateCommand cmd) throws IOException { if(!blacklistService.isBlackListed(cmd.getSolrInputDocument())){ super.processAdd(cmd); } }
@Override public void processAdd(AddUpdateCommand cmd) throws IOException { SolrInputDocument doc = cmd.getSolrInputDocument(); classifyDocument(doc); super.processAdd(cmd); }
@Override public void processAdd (final AddUpdateCommand cmd) throws IOException { SolrInputDocument solrInputDocument = cmd.getSolrInputDocument(); String uri = (String) solrInputDocument.getFieldValue(uriFieldName); if (uri != null) { // we actually only need about 42 bits to count up to about to 2070, so use the remaining 22 // for some bits from a uri hash to make this (more likely to be) globally unique. long t = System.currentTimeMillis() << 22; long hashCode = uri.hashCode() & 0x2fffff; // would the high-order bits be more random? long luxDocId = t | hashCode; solrInputDocument.addField(idFieldName, luxDocId); } if (next != null) { next.processAdd(cmd); } }
@Override public void processAdd(AddUpdateCommand cmd) throws IOException { SolrInputDocument doc = cmd.getSolrInputDocument(); String appid = (String)doc.getFieldValue( "appid" ); String docid = (String)doc.getFieldValue( "docid" ); doc.addField("uniqueid", appid + "-" + docid); // pass it up the chain super.processAdd(cmd); }
@Override public void processAdd(AddUpdateCommand cmd) throws IOException { cmd.doc = DocumentBuilder.toDocument(cmd.getSolrInputDocument(), req.getSchema()); updateHandler.addDoc(cmd); super.processAdd(cmd); }
SolrInputDocument doc = cmd.getSolrInputDocument();
@Override public void processAdd(AddUpdateCommand cmd) throws IOException { if (enabled) { SolrInputDocument doc = cmd.getSolrInputDocument(); if (sigFields == null || sigFields.size() == 0) { Collection<String> docFields = doc.getFieldNames();
SolrInputDocument doc = cmd.getSolrInputDocument();
@Override public void processAdd (final AddUpdateCommand cmd) throws IOException { SolrInputDocument solrInputDocument = cmd.getSolrInputDocument(); String xmlFieldName = indexConfig.getFieldName(FieldRole.XML_STORE); String idFieldName = indexConfig.getFieldName(FieldRole.ID);