Skip to content

Instantly share code, notes, and snippets.

{
"took": 19,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 5,
{
"took": 8,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
#create index and update analyzer
curl -XPOST 'localhost:9200/test_dev'
curl -XPOST 'localhost:9200/test_dev/_close'
curl -XPUT 'localhost:9200/test_dev/_settings' -d '{
"analysis" : {
"analyzer":{
"standard":{
"type":"standard",
"hits": {
"total": 521,
"max_score": 9.799837,
"hits": [
{
"_index": "jdbc_dev",
"_type": "media",
"_id": "76367",
"_score": 9.799837,
"_source": {
{
"media": {
"properties": {
"AUDIO": {
"type": "string"
},
"BILLINGTYPE_ID": {
"type": "long"
},
"CATMEDIA_CDATE": {
{
"took": 22,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 8,
{
"media": {
"properties": {
"AUDIO": {
"type": "string"
},
"BILLINGTYPE_ID": {
"type": "long"
},
"CATMEDIA_CDATE": {
"_shard": 1,
"_node": "Db5OO2IRQqKtr9dTLnM6qQ",
"_index": "jdbc_dev",
"_type": "media",
"_id": "yPz6U2iWSPCKCLVQpvd_Zw",
"_score": 1.5775237,
"_source": {
"DISPLAY_NAME": "Happier?",
"PRICE": 4,
"AUDIO": "http://musicube.thecube.my/base/preview/088/889023/889023-MP3-TT-P.mp3",
{
"jdbc_dev": {
"media_history": {
"properties": {
"AUDIO": {
"type": "string"
},
"BILLINGTYPE_ID": {
"type": "long"
},
{
"media": {
"properties": {
"AUDIO": {
"type": "string"
},
"BILLINGTYPE_ID": {
"type": "long"
},
"CATMEDIA_CDATE": {