Beispiel #1
0
 @Override
 public void add(int docID, IndexableField value) throws IOException {
   template.toBytes(value.numericValue().longValue(), bytesRef);
   bytesSpareField.setBytesValue(bytesRef);
   super.add(docID, bytesSpareField);
 }
Beispiel #2
0
 @Override
 protected void setMergeBytes(Source source, int sourceDoc) {
   final long value = source.getInt(sourceDoc);
   template.toBytes(value, bytesRef);
 }