Skip to content

Instantly share code, notes, and snippets.

@jprante
Created September 9, 2011 17:19
Show Gist options
  • Save jprante/1206792 to your computer and use it in GitHub Desktop.
Save jprante/1206792 to your computer and use it in GitHub Desktop.
To Dario
node 1
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2163 es 20 0 20.8g 3.5g 6340 S 0.3 22.5 920:36.53 java
node 2
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2175 es 20 0 20.7g 2.2g 6448 S 1.0 14.1 611:42.36 java
node 3
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6449 es 20 0 20.6g 3.2g 10m S 0.5 20.6 857:17.00 java
curl -XGET 'http://10.3.2.81:9200/hbz/title/_search?pretty=true' -d '
{ "query" : { "query_string" : { "query" : "Köln" } },
"facets" : {
"xbib:namePersonalFacetEntry" : { "terms" : { "field" : "xbib:namePersonalFacetEntry" } }
}
}'
{
"took" : 2671,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 147483,
"max_score" : 2.1673045,
"hits" : [ {
...
} ]
},
"facets" : {
"xbib:namePersonalFacetEntry" : {
"_type" : "terms",
"missing" : 2746728,
"terms" : [ {
"term" : "Maximilian Friedrich <Köln, Kurfürst>",
"count" : 549
}, {
"term" : "Klemens August <Köln, Erzbischof>",
"count" : 455
}, {
"term" : "Höffner, Joseph",
"count" : 419
}, {
"term" : "Maximilian Friedrich <Köln, Erzbischof>",
"count" : 403
}, {
"term" : "Reinicke, Christian",
"count" : 355
}, {
"term" : "Maximilian Franz <Köln, Kurfürst>",
"count" : 220
}, {
"term" : "Haydn, Joseph",
"count" : 166
}, {
"term" : "Fremersdorf, Fritz",
"count" : 107
}, {
"term" : "Vogts, Hans",
"count" : 50
}, {
"term" : "Kier, Hiltrud",
"count" : 49
} ]
}
}
}
curl -XGET 'http://10.3.2.81:9200/hbz/title/_search?pretty=true' -d '
{ "query" : { "query_string" : { "query" : "München" } },
"facets" : {
"xbib:namePersonalFacetEntry" : { "terms" : { "field" : "xbib:namePersonalFacetEntry" } }
}
}'
{
"took" : 3903,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 105305,
"max_score" : 1.7108692,
"hits" : [ {
...
} ]
},
"facets" : {
"xbib:namePersonalFacetEntry" : {
"_type" : "terms",
"missing" : 1969989,
"terms" : [ {
"term" : "Schütz, Jakob Hubert",
"count" : 131
}, {
"term" : "Steindl, Michael",
"count" : 125
}, {
"term" : "Rabura, Horst M.",
"count" : 125
}, {
"term" : "Mozart, Wolfgang Amadeus",
"count" : 90
}, {
"term" : "Strauss, Richard",
"count" : 81
}, {
"term" : "Wagner, Richard",
"count" : 61
}, {
"term" : "Pertz, Georg Heinrich",
"count" : 55
}, {
"term" : "Mandl, Heinz",
"count" : 45
}, {
"term" : "Wunderlich, Fritz",
"count" : 38
}, {
"term" : "Montessori, Maria",
"count" : 28
} ]
}
}
}
curl -XGET 'http://10.3.2.81:9200/hbz/title/_search?pretty=true' -d '
{ "query" : { "query_string" : { "query" : "der" } },
"facets" : {
"xbib:namePersonalFacetEntry" : { "terms" : { "field" : "xbib:namePersonalFacetEntry" } }
}
}'
{
"took" : 6980,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 4105960,
"max_score" : 1.0438966,
"hits" : [ {
} ]
},
"facets" : {
"xbib:namePersonalFacetEntry" : {
"_type" : "terms",
"missing" : 71324006,
"terms" : [ {
"term" : "Bach, Johann Sebastian",
"count" : 3948
}, {
"term" : "Friedrich <Preußen, König, II.>",
"count" : 2716
}, {
"term" : "Goethe, Johann Wolfgang <<von>>",
"count" : 2619
}, {
"term" : "Gmelin, Leopold",
"count" : 2466
}, {
"term" : "Schubert, Franz",
"count" : 2189
}, {
"term" : "Luther, Martin",
"count" : 2051
}, {
"term" : "Seneca, Lucius Annaeus <Philosophus>",
"count" : 2008
}, {
"term" : "Zeller, Otto",
"count" : 1893
}, {
"term" : "Wagner, Richard",
"count" : 1398
}, {
"term" : "Hegel, Georg Wilhelm Friedrich",
"count" : 1059
} ]
}
}
}
curl -XGET 'http://10.3.2.81:9200/hbz/title/_search?pretty=true' -d '
{ "query" : { "query_string" : { "query" : "Das" } },
"facets" : {
"xbib:namePersonalFacetEntry" : { "terms" : { "field" : "xbib:namePersonalFacetEntry" } },
"xbib:date" : { "terms" : { "field" : "xbib:date" } }
} }'
{
"took" : 5010,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 837352,
"max_score" : 1.3481807,
"hits" : [ {
...
} ]
},
"facets" : {
"xbib:namePersonalFacetEntry" : {
"_type" : "terms",
"missing" : 14649064,
"terms" : [ {
"term" : "Bach, Johann Sebastian",
"count" : 1935
}, {
"term" : "Marx, Karl",
"count" : 1118
}, {
"term" : "Luther, Martin",
"count" : 816
}, {
"term" : "Engels, Friedrich",
"count" : 605
}, {
"term" : "Beethoven, Ludwig <<van>>",
"count" : 602
}, {
"term" : "Schubert, Franz",
"count" : 584
}, {
"term" : "Mozart, Wolfgang Amadeus",
"count" : 565
}, {
"term" : "Schumann, Robert",
"count" : 469
}, {
"term" : "Schlosser, Friedrich Christoph",
"count" : 394
}, {
"term" : "Steiner, Rudolf",
"count" : 238
} ]
},
"xbib:date" : {
"_type" : "terms",
"missing" : 2806242,
"terms" : [ {
"term" : 1996,
"count" : 12971
}, {
"term" : 1997,
"count" : 12582
}, {
"term" : 1999,
"count" : 12376
}, {
"term" : 1995,
"count" : 12305
}, {
"term" : 2000,
"count" : 12142
}, {
"term" : 1998,
"count" : 11821
}, {
"term" : 1994,
"count" : 11789
}, {
"term" : 1990,
"count" : 11439
}, {
"term" : 2001,
"count" : 4481
}, {
"term" : 1993,
"count" : 4460
} ]
}
}
}
curl -XGET 'http://10.3.2.81:9200/hbz/title/_search?pretty=true' -d '
{ "query" : { "match_all" : { } },
"facets" : {
"xbib:namePersonalFacetEntry" : { "terms" : { "field" : "xbib:namePersonalFacetEntry" } },
"xbib:date" : { "terms" : { "field" : "xbib:date" } }
} }'
{
"took" : 6607,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 17938215,
"max_score" : 1.0,
"hits" : [ {
...
} ]
},
"facets" : {
"xbib:namePersonalFacetEntry" : {
"_type" : "terms",
"missing" : 315013423,
"terms" : [ {
"term" : "Bach, Johann Sebastian",
"count" : 21245
}, {
"term" : "Goethe, Johann Wolfgang <<von>>",
"count" : 16944
}, {
"term" : "Mozart, Wolfgang Amadeus",
"count" : 15946
}, {
"term" : "Schubert, Franz",
"count" : 13495
}, {
"term" : "Shakespeare, William",
"count" : 12074
}, {
"term" : "Haydn, Joseph",
"count" : 9825
}, {
"term" : "Schumann, Robert",
"count" : 9587
}, {
"term" : "Beethoven, Ludwig <<van>>",
"count" : 9359
}, {
"term" : "Cicero, Marcus Tullius",
"count" : 8688
}, {
"term" : "Brahms, Johannes",
"count" : 8146
} ]
},
"xbib:date" : {
"_type" : "terms",
"missing" : 60851773,
"terms" : [ {
"term" : 1999,
"count" : 361803
}, {
"term" : 1990,
"count" : 289098
}, {
"term" : 1996,
"count" : 277928
}, {
"term" : 1995,
"count" : 276240
}, {
"term" : 1994,
"count" : 273136
}, {
"term" : 2000,
"count" : 272356
}, {
"term" : 2002,
"count" : 271410
}, {
"term" : 1997,
"count" : 271298
}, {
"term" : 1989,
"count" : 243907
}, {
"term" : 1998,
"count" : 188734
} ]
}
}
}
curl -XGET 'http://10.3.2.81:9200/hbz/title/_search?pretty=true' -d '
{ "query" : { "match_all" : { } },
"facets" : {
"xbib:namePersonalFacetEntry" : { "terms" : { "field" : "xbib:namePersonalFacetEntry" } },
"xbib:date" : { "terms" : { "field" : "xbib:date" } },
"xbib:language" : { "terms" : { "field" : "xbib:language" } }
} }'
{
"took" : 8975,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 17938215,
"max_score" : 1.0,
"hits" : [ {
...
} ]
},
"facets" : {
"xbib:namePersonalFacetEntry" : {
"_type" : "terms",
"missing" : 315013423,
"terms" : [ {
"term" : "Bach, Johann Sebastian",
"count" : 21245
}, {
"term" : "Goethe, Johann Wolfgang <<von>>",
"count" : 16944
}, {
"term" : "Mozart, Wolfgang Amadeus",
"count" : 15946
}, {
"term" : "Schubert, Franz",
"count" : 13495
}, {
"term" : "Shakespeare, William",
"count" : 12074
}, {
"term" : "Haydn, Joseph",
"count" : 9825
}, {
"term" : "Schumann, Robert",
"count" : 9587
}, {
"term" : "Beethoven, Ludwig <<van>>",
"count" : 9359
}, {
"term" : "Cicero, Marcus Tullius",
"count" : 8688
}, {
"term" : "Brahms, Johannes",
"count" : 8146
} ]
},
"xbib:date" : {
"_type" : "terms",
"missing" : 60851773,
"terms" : [ {
"term" : 1999,
"count" : 361803
}, {
"term" : 1990,
"count" : 289098
}, {
"term" : 1996,
"count" : 277928
}, {
"term" : 1995,
"count" : 276240
}, {
"term" : 1994,
"count" : 273136
}, {
"term" : 2000,
"count" : 272356
}, {
"term" : 2002,
"count" : 271410
}, {
"term" : 1997,
"count" : 271298
}, {
"term" : 1989,
"count" : 243907
}, {
"term" : 1998,
"count" : 188734
} ]
},
"xbib:language" : {
"_type" : "terms",
"missing" : 181870794,
"terms" : [ {
"term" : "de",
"count" : 5041384
}, {
"term" : "ger",
"count" : 5041381
}, {
"term" : "eng",
"count" : 2465323
}, {
"term" : "en",
"count" : 2465323
}, {
"term" : "fre",
"count" : 535535
}, {
"term" : "fr",
"count" : 535535
}, {
"term" : "ita",
"count" : 171381
}, {
"term" : "it",
"count" : 171381
}, {
"term" : "lat",
"count" : 169418
}, {
"term" : "la",
"count" : 169418
} ]
}
}
}
curl -XGET 'http://10.3.2.81:9200/hbz/title/_search?pretty=true' -d '
{ "query" : { "match_all" : { } },
"facets" : {
"xbib:date" : { "terms" : { "field" : "xbib:date" } }, "xbib:language" : { "terms" : { "field" : "xbib:language" } }
} }'
{
"took" : 2146,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 17938215,
"max_score" : 1.0,
"hits" : [ {
...
} ]
},
"facets" : {
"xbib:date" : {
"_type" : "terms",
"missing" : 60851773,
"terms" : [ {
"term" : 1999,
"count" : 361803
}, {
"term" : 1990,
"count" : 289098
}, {
"term" : 1996,
"count" : 277928
}, {
"term" : 1995,
"count" : 276240
}, {
"term" : 1994,
"count" : 273136
}, {
"term" : 2000,
"count" : 272356
}, {
"term" : 2002,
"count" : 271410
}, {
"term" : 1997,
"count" : 271298
}, {
"term" : 1989,
"count" : 243907
}, {
"term" : 1998,
"count" : 188734
} ]
},
"xbib:language" : {
"_type" : "terms",
"missing" : 181870794,
"terms" : [ {
"term" : "de",
"count" : 5041384
}, {
"term" : "ger",
"count" : 5041381
}, {
"term" : "eng",
"count" : 2465323
}, {
"term" : "en",
"count" : 2465323
}, {
"term" : "fre",
"count" : 535535
}, {
"term" : "fr",
"count" : 535535
}, {
"term" : "ita",
"count" : 171381
}, {
"term" : "it",
"count" : 171381
}, {
"term" : "lat",
"count" : 169418
}, {
"term" : "la",
"count" : 169418
} ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment