Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Medcl medcl

💭
I may be slow to respond.
Block or report user

Report or block medcl

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:1527312
{
"from": 0,
"size": 5,
"query": {
"constant_score": {
"filter": {
"and": [
{
"term": {
"_tenantid": "100100"
View gist:1527309
{
"from": 0,
"size": 5,
"query": {
"constant_score": {
"filter": {
"bool": {
"must": [
{
"numeric_range": {
@medcl
medcl / asd1111111111111111111111111111111111111111111111111111
Created Nov 23, 2011
asdf1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
View gist:1057629
curl localhost:9200/a/b -d'{short:"NP"}'
curl localhost:9200/a/b -d'{short:"NPL"}'
curl localhost:9200/a/b -d'{short:"NPLP"}'
curl localhost:9200/a/b -d'{short:"NPNP"}'
curl localhost:9200/a/b -d'{short:"LNP"}'
curl localhost:9200/a/b -d'{short:"NLNP"}'
curl localhost:9200/a/b -d'{short:"NNP"}'
curl localhost:9200/a/b -d'{short:"NPP"}'
curl localhost:9200/a/b -d'{short:"np"}'
View gist:1044172
GET http://10.129.8.58:9200/beisen.multitenant.client/_search?q=%2b__TYPEID%3a%22a4b041be-be43-43c0-b4df-918724c19f53%22+%2b_tenantid%3a100001 HTTP/1.1
User-Agent: Fiddler
Host: 10.129.8.58:9200
Content-Length: 0
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=UTF-8
Content-Length: 3727
View gist:758402
curl -XPUT 'http://localhost:9200/dbparent/metadata/1' -d '{ "user" : "senthil", "Title" : "trying out Elastic Search"}'
curl -XPUT 'http://localhost:9200/dbparent/metadata/2' -d '{ "user" : "kumar", "Title" : "Elastic Search"}'
curl -XPUT 'http://localhost:9200/dbparent/child/_mapping' -d '{ "child" : { "_parent" : { "type" : "metadata" } }}'
curl -XPUT 'http://localhost:9200/dbparent/child/1?parent=1' -d '{ "tag" : "something"}'
curl -XGET 'http://localhost:9200/dbparent/_search' -d '{
View gist:667566
{"error":"SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {null: ArrayIndexOutOfBoundsException[null]}{null: ArrayIndexOutOfBoundsException[null]}{null: ArrayIndexOutOfBoundsException[null]}{null: ArrayIndexOutOfBoundsException[null]}{null: ArrayIndexOutOfBoundsException[null]}]"}
another exception:
http://localhost:9200/dataaccesstest/c2b63cbc-e147-43bc-adb7-95ed7226d476/_search?q=%2b__TENANTID%3a100001+%2b__TYPEID%3ac2b63cbc-e147-43bc-adb7-95ed7226d476+Score:{0 TO 70.5}
View gist:662232
[2010-11-04 13:47:19,679][DEBUG][index.gateway ] [Mister Buda] [search_index][1] recovery completed from local, took [47ms]
index : files [0] with total_size [0b], took[14917.2d]
: recovered_files [0] with total_size [0b]
: reusing_files [0] with total_size [0b]
translog : number_of_operations [0], took [14917.2d]
[2010-11-04 13:47:19,685][DEBUG][index.shard.recovery ] [Mister Buda] [search_index][0] recovery completed from [Time Bomb][cJXGXAPCQNWk6DwrwcGozw][inet[/10.129.6.33:9300]], took[6ms]
phase1: recovered_files [1] with total_size of [32b], took [2ms], throttling_wait [0s]
: reusing_files [0] with total_size of [0b]
phase2: recovered [0] transaction log operations, took [3ms]
phase3: recovered [0] transaction log operations, took [1ms]
@medcl
medcl / gist:636288
Created Oct 20, 2010
es_error_node_disconnect
View gist:636288
ormRecoveryPrepareForTranslog(InternalIndexShard.java:439)
at org.elasticsearch.index.shard.recovery.RecoveryTarget$PrepareForTranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:281)
at org.elasticsearch.index.shard.recovery.RecoveryTarget$PrepareForTranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:265)
at org.elasticsearch.transport.netty.MessageChannelHandler$3.run(MessageChannelHandler.java:195)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.io.FileNotFoundException: /var/elasticsearch/0.12_work/BEISENSEARCH_CLUSTER/nodes/0/indices/index_delete2/3/index/_81g.frq (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
View elasticsearch_config.xml
<?xml version="1.0" encoding="utf-8"?>
<ElasticSearchConfig majorVersion="1" minorVersion="18">
<TransportType>thrift</TransportType>
<ThriftNodes>
<Node Host="localhost" Port="9500" Enabled="true" IsFramed="false" EnablePool="true" >
<ConnectionPool PoolSize="5" LifetimeMinutes="30" />
<SocketSettings SendBufferSize="8190" ReceiveBufferSize="8190" SendTimeout="10000" ReceiveTimeout="10000" ConnectTimeout="3000"/>
</Node>
<Node Host="10.129.6.35" Port="9500" Enabled="false" EnablePool="true" />
<Node Host="10.129.6.36" Port="9500" Enabled="false" EnablePool="false" />
You can’t perform that action at this time.