Skip to content

Instantly share code, notes, and snippets.

public class School {
private final String name;
private final String nickname;
public School(String name, String nickname) {
this.name = name;
this.nickname = nickname;
}
@Override
@snellm
snellm / ElasticSearchGcDeletes.java
Created August 14, 2012 17:03
Indexing document with same id within 60 seconds of delete causes VersionConflictEngineException
import org.elasticsearch.client.Client;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.node.Node;
import static org.elasticsearch.client.Requests.*;
import static org.elasticsearch.index.VersionType.*;
import static org.elasticsearch.node.NodeBuilder.*;