Skip to content

Instantly share code, notes, and snippets.

import java.util.*;
import java.util.zip.*;
import java.io.*;
import java.util.Enumeration;
import java.util.zip.ZipFile;
import java.util.zip.ZipEntry;
public class ZipGetMethod {
public static void main(String[] args) {
String file = "moby.zip";
resolve:
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] [FAILED ] javax.activation#activation;1.1.1!activation.jar(javadoc): (0ms)
[ivy:retrieve] ==== shared: tried
[ivy:retrieve] /home/ishan/.ivy2/shared/javax.activation/activation/1.1.1/javadocs/activation.jar
[ivy:retrieve] ==== public: tried
[ivy:retrieve] http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1-javadoc.jar
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
@chatman
chatman / gist:f54b434d2052bcc07b5c
Created January 21, 2015 17:28
Question Answering Request Handler example for blob store ref guide
package org.apache.solr.core;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
@chatman
chatman / gist:4436881e9373760715fc
Last active August 29, 2015 14:14
CRUDHandler.java
package org.apache.solr.core;
import java.util.List;
import org.apache.solr.common.SolrException;
import org.apache.solr.common.params.ModifiableSolrParams;
import org.apache.solr.common.params.SolrParams;
import org.apache.solr.common.util.StrUtils;
import org.apache.solr.handler.UpdateRequestHandler;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.request.SolrRequestHandler;
@chatman
chatman / gist:9d328e998fea5930e9367b113c8c55f0
Created May 8, 2016 23:26 — forked from markrmiller/beast.sh
The best Lucene / Solr beasting script in the world. TM.
#!/usr/bin/env bash
# The best Lucene / Solr beasting script in the world. TM. 3.9.2
#
# This script will fire off N independent test runs for a class, X of them in parallel.
#
# A results.log file is written to the {results-dir}. A non zero exit status indicates a failed run.
# If the test was executed properly there will always be one line entry for each run in the results.log file, success or failure.
#
# Logs for each run are independently written under the {results-dir}/1 directory.
package org.apache.solr.cloud;
import java.io.IOException;
import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
package org.apache.solr.cloud;
import java.io.IOException;
import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
#!/usr/bin/perl -l
# bin/solr start -f -s /var/tmp/solr-5944-bench/solr/
# (time ./benchmark-update.pl) 2>&1 | tee log.txt && phone-alert done
use strict;
use warnings;
use LWP::UserAgent;
[
{
"id": "question-answer",
"description": "A natural language question answering plugin",
"versions": [
{
"version": "1.0.0",
"date": "2019-01-01",
"url": "question-answer-request-handler-1.0.jar",
"sig": "C9UWKkucmY3UNzqn0VLneVMe9kCbJjw7Urc76vGenoRwp32xvNn5ZIGZ7G34xZP7cVjqn/ltDlLWBZ/C3eAtuw==",
ishan@instance-4:~/solr-bench$ unzip -l logs-2020-16-06_14.35.26.zip
Archive: logs-2020-16-06_14.35.26.zip
Length Date Time Name
--------- ---------- ----- ----
133120 2020-06-16 14:35 solrlogs-solr-1.tar
40960 2020-06-16 14:35 solrlogs-solr-2.tar
--------- -------
174080 2 files