Skip to content

Instantly share code, notes, and snippets.

Igor Motov imotov

Block or report user

Report or block imotov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:929389
[2011-04-18 13:05:25,429][DEBUG][action.index ] [Aardwolf] [wikipedia][2], node[DWa9nNZ6TMiavl6nID7_mw], [P], s[STARTED]: Failed to execute [index {[wikipedia][page][26277], source[{"id": "26277", "revision": {"contributor": "", "id": "349471962", "text": "{{Nofootnotes|date=October 2009}}\n{{worldwide}}\n{{Property law}}\n'''Real property''' and [[personal property]] are the main classifications of [[property]] in the [[common law]]. '''Real property''' refers to [[Estate in land|land]] and the improvements made by human efforts—buildings, machinery, the acquisition of various property rights, and the like.\n'''Real property''' is also termed '''[[realty]]''', '''[[real estate]]''', and '''[[immovable property]]'''.\n\nIn countries with personal ownership of '''real property''',\n[[civil law (legal system)|civil law]] protects the status in realty markets,\nwhere [[realtors]] work in realty selling real estate.\nScottish civil law calls it ''heritable property'', and in France\nit is said
View gist:930129
bigmac:elasticsearch-0.16.0-SNAPSHOT igor$ export ES_MIN_MEM=28m; export ES_MAX_MEM=28m; bin/elasticsearch -f
[2011-04-19 21:07:18,097][INFO ][node ] [Cody Mushumanski gun Man aka: the hunter] {elasticsearch/0.16.0-SNAPSHOT/2011-04-18T15:00:52}[23323]: initializing ...
[2011-04-19 21:07:18,099][INFO ][plugins ] [Cody Mushumanski gun Man aka: the hunter] loaded []
[2011-04-19 21:07:20,129][DEBUG][index.shard.recovery ] [Cody Mushumanski gun Man aka: the hunter] using concurrent_streams [5], file_chunk_size [100kb], translog_size [100kb], translog_ops [1000], and compress [true]
[2011-04-19 21:07:20,132][INFO ][node ] [Cody Mushumanski gun Man aka: the hunter] {elasticsearch/0.16.0-SNAPSHOT/2011-04-18T15:00:52}[23323]: initialized
[2011-04-19 21:07:20,133][INFO ][node ] [Cody Mushumanski gun Man aka: the hunter] {elasticsearch/0.16.0-SNAPSHOT/2011-04-18T15:00:52}[23323]: starting ...
[2011-04-19 21:07:20,199][INFO ][transport
View gist:930136
bigmac:elasticsearch-0.16.0-SNAPSHOT igor$ export ES_MIN_MEM=32m; export ES_MAX_MEM=32m; bin/elasticsearch -f
[2011-04-19 11:57:51,667][INFO ][node ] [Ms. Steed] {elasticsearch/0.16.0-SNAPSHOT/2011-04-18T15:00:52}[20290]: initializing ...
[2011-04-19 11:57:51,669][INFO ][plugins ] [Ms. Steed] loaded []
[2011-04-19 11:57:53,723][DEBUG][index.shard.recovery ] [Ms. Steed] using concurrent_streams [5], file_chunk_size [100kb], translog_size [100kb], translog_ops [1000], and compress [true]
[2011-04-19 11:57:53,726][INFO ][node ] [Ms. Steed] {elasticsearch/0.16.0-SNAPSHOT/2011-04-18T15:00:52}[20290]: initialized
[2011-04-19 11:57:53,726][INFO ][node ] [Ms. Steed] {elasticsearch/0.16.0-SNAPSHOT/2011-04-18T15:00:52}[20290]: starting ...
[2011-04-19 11:57:53,796][INFO ][transport ] [Ms. Steed] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/192.168.10.1:9300]}
[2011-04-19 11:57:56,881][INFO ][cluster.service
View gist:967342
curl -XPUT 'http://localhost:9200/twitter/tweet/1?refresh=true' -d '{
"user": "kimchy",
"post_date": "2009-11-15T13:12:00",
"message": "Trying out elasticsearch, so far so good?"
}'
echo ""
curl -XPUT 'http://localhost:9200/twitter/tweet/2?refresh=true' -d '{
"user": "kimchy",
"post_date": "2009-11-15T14:12:12",
"message": "You know, for Search"
View gist:1009444
public interface OperationRouting {
ShardIterator indexShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing) throws IndexMissingException, IndexShardMissingException;
ShardIterator deleteShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing) throws IndexMissingException, IndexShardMissingException;
GroupShardsIterator broadcastDeleteShards(ClusterState clusterState, String index) throws IndexMissingException, IndexShardMissingException;
ShardIterator getShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing, @Nullable String preference) throws IndexMissingException, IndexShardMissingException;
@imotov
imotov / geo_distance_test
Created Jun 23, 2011 — forked from mauricioalarcon/geo_distance_test
geo_distance test for ES
View geo_distance_test
# Delete all pins
curl -X DELETE "http://localhost:9200/pins/pin"
# Create proper mapping
curl -XPUT 'http://localhost:9200/pins/pin/_mapping' -d '
{
"pin" : {
"properties" : {
"location" : {
"type" : "geo_point"
View gist:1048874
# Clean the test index first
curl -XDELETE 'http://localhost:9200/sotest'
# Put Test Record
curl -XPUT 'http://localhost:9200/sotest/type1/1' -d '{
"content":"Some content with @someone mention",
"mentions":["someone"],
"userId":"4dff31eaf8815f4df04e2d62"
}'
# Returns --> {"ok":true,"_index":"sotest","_type":"type1","_id":"1","_version":1}
View gist:1097105
curl -XDELETE http://localhost:9200/stackoverflow
curl -XPUT http://localhost:9200/stackoverflow
curl -XPUT http://localhost:9200/stackoverflow/location/_mapping -d '{
"location" : {
"properties": {
"name": { "type": "string", "boost": 2.0, "analyzer": "snowball" },
View gist:1097286
{"ok":true,"acknowledged":true}{"ok":true,"acknowledged":true}{"ok":true,"acknowledged":true}{"ok":true,"_index":"stackoverflow","_type":"location","_id":"1","_version":1}
{"ok":true,"_index":"stackoverflow","_type":"location","_id":"2","_version":1}
{"ok":true,"_index":"stackoverflow","_type":"location","_id":"3","_version":1}
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
@imotov
imotov / gist:1242765
Created Sep 26, 2011
Missing JUnit dependency in groovy plugin
View gist:1242765
imotov-mac:tests imotov$ git clone https://github.com/elasticsearch/elasticsearch.git
Cloning into elasticsearch...
remote: Counting objects: 77061, done.
remote: Compressing objects: 100% (24522/24522), done.
remote: Total 77061 (delta 44284), reused 75308 (delta 42717)
Receiving objects: 100% (77061/77061), 14.42 MiB | 1.60 MiB/s, done.
Resolving deltas: 100% (44284/44284), done.
imotov-mac:tests imotov$ cd elasticsearch/
imotov-mac:elasticsearch imotov$ ./gradlew test
:jarjar:compileJava UP-TO-DATE
You can’t perform that action at this time.