Skip to content

Instantly share code, notes, and snippets.

@arjitgupta
arjitgupta / jstack
Created January 5, 2014 04:48
Jstack of ES cluster node on high load
This file has been truncated, but you can view the full file.
2014-01-04 16:03:56
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode):
"Attach Listener" daemon prio=10 tid=0x0000000042c17000 nid=0x5eab waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"elasticsearch[sp-cms-hoodoo-search8][[fk_mp_product_category_node_ds5][0]: Lucene Merge Thread #17458]" daemon prio=10 tid=0x00007fdaa5f71000 nid=0x5eaa sleeping[0x00007fdabe77c000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at java.lang.Thread.sleep(Thread.java:302)
{
"index" : {
"analysis" : {
"analyzer" : {
"my_analyzer" : {
"type": "custom",
"tokenizer" : "keyword",
"filter" : "lowercase"
},
"special_char_remover" : {
@arjitgupta
arjitgupta / Analyzer
Last active December 30, 2015 06:49
Elastic search Analyzer
{
"index" : {
"analysis" : {
"analyzer" : {
"my_analyzer" : {
"type": "custom",
"tokenizer" : "keyword",
"filter" : "lowercase"
},
"special_char_remover" : {
@arjitgupta
arjitgupta / gist:5545015
Created May 9, 2013 02:00
Explaining a query
{
"ok" : true,
"_index" : "matcher_fuzzy_w9l",
"_type" : "matcher_fuzzy",
"_id" : "MOBHJGDFHJ0",
"matched" : true,
"explanation" : {
"value" : 0.62499994,
"description" : "sum of:",
"details" : [ {
@arjitgupta
arjitgupta / Analyzer and query
Last active December 17, 2015 01:49
Analyzer used to approx search and query
{
"index" : {
"analysis" : {
"analyzer" : {
"my_analyzer" : {
"tokenizer" : "standard",
"filter" : ["standard", "lowercase", "my_metaphone","ourEnglishFilter","mynGram"]
},
"simple_analyzer" : {
"tokenizer": "my_pattern_tokenizer",