Skip to content

Instantly share code, notes, and snippets.

@carljm
Created February 19, 2014 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carljm/9086090 to your computer and use it in GitHub Desktop.
Save carljm/9086090 to your computer and use it in GitHub Desktop.
$ curl -s -XGET 'http://localhost:9200/_settings?pretty'
{
"jlor" : {
"settings" : {
"index.analysis.analyzer.default.filter.1" : "lowercase",
"index.analysis.analyzer.default.filter.0" : "standard",
"index.analysis.analyzer.default.tokenizer" : "standard",
"index.analysis.analyzer.default.type" : "custom",
"index.number_of_shards" : "5",
"index.number_of_replicas" : "1",
"index.version.created" : "900799",
"index.uuid" : "BvOPyeh2TQ2y8d-R2t3tDg",
"index.refresh_interval" : "1s"
}
}
}
$ curl -s -XGET 'http://localhost:9200/_analyze?analyzer=default&pretty' -d "not the brown and fox"
{
"tokens" : [ {
"token" : "brown",
"start_offset" : 8,
"end_offset" : 13,
"type" : "<ALPHANUM>",
"position" : 3
}, {
"token" : "fox",
"start_offset" : 18,
"end_offset" : 21,
"type" : "<ALPHANUM>",
"position" : 5
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment